Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174807
b: refs/heads/master
c: f7ca698
h: refs/heads/master
i:
  174805: b4adeb9
  174803: 6c9b0a2
  174799: 8b12a00
v: v3
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Nov 24, 2009
1 parent 57833a3 commit 67ac210
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 463a5df175e3ceed684397ee2f8a3eb523d835a0
refs/heads/master: f7ca69848786bb99fdfafb511791b078c298438e
12 changes: 6 additions & 6 deletions trunk/arch/x86/pci/mmconfig-shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ static __init struct acpi_mcfg_allocation *pci_mmconfig_add(int segment,
int new_num = pci_mmcfg_config_num + 1;
int i = pci_mmcfg_config_num;

if (addr == 0)
return NULL;

new = kzalloc(sizeof(pci_mmcfg_config[0]) * new_num, GFP_KERNEL);
if (!new)
return NULL;
Expand Down Expand Up @@ -471,8 +474,7 @@ static void __init pci_mmcfg_reject_broken(int early)
typeof(pci_mmcfg_config[0]) *cfg;
int i;

if ((pci_mmcfg_config_num == 0) ||
(pci_mmcfg_config[0].address == 0))
if (pci_mmcfg_config_num == 0)
return;

for (i = 0; i < pci_mmcfg_config_num; i++) {
Expand Down Expand Up @@ -616,8 +618,7 @@ static void __init __pci_mmcfg_init(int early)

pci_mmcfg_reject_broken(early);

if ((pci_mmcfg_config_num == 0) ||
(pci_mmcfg_config[0].address == 0))
if (pci_mmcfg_config_num == 0)
return;

if (pci_mmcfg_arch_init())
Expand Down Expand Up @@ -649,8 +650,7 @@ static int __init pci_mmcfg_late_insert_resources(void)
*/
if ((pci_mmcfg_resources_inserted == 1) ||
(pci_probe & PCI_PROBE_MMCONF) == 0 ||
(pci_mmcfg_config_num == 0) ||
(pci_mmcfg_config[0].address == 0))
(pci_mmcfg_config_num == 0))
return 1;

/*
Expand Down

0 comments on commit 67ac210

Please sign in to comment.