[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/mmcfg: set pci_mmcfg_config_num to 0 on error path
commit d7594d553b10e74a0cbe15a157baac1aae1d3acd Author: Roger Pau Monné <roger.pau@xxxxxxxxxx> AuthorDate: Wed May 31 08:39:47 2017 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Wed May 31 08:39:47 2017 +0200 x86/mmcfg: set pci_mmcfg_config_num to 0 on error path One error path of acpi_parse_mcfg doesn't set pci_mmcfg_config_num to zero, fix this. Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/x86_64/acpi_mmcfg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/x86_64/acpi_mmcfg.c b/xen/arch/x86/x86_64/acpi_mmcfg.c index a96d5e0..650140e 100644 --- a/xen/arch/x86/x86_64/acpi_mmcfg.c +++ b/xen/arch/x86/x86_64/acpi_mmcfg.c @@ -96,6 +96,7 @@ int __init acpi_parse_mcfg(struct acpi_table_header *header) if (!pci_mmcfg_config) { printk(KERN_WARNING PREFIX "No memory for MCFG config tables\n"); + pci_mmcfg_config_num = 0; return -ENOMEM; } -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |