Skip to content

Commit

Permalink
Merge branch 'bugzilla-14129' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Len Brown committed Oct 15, 2009
2 parents a3ccf63 + 497fb54 commit f63a904
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/acpi/pci_root.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,17 @@ struct pci_dev *acpi_get_pci_dev(acpi_handle handle)

pbus = pdev->subordinate;
pci_dev_put(pdev);

/*
* This function may be called for a non-PCI device that has a
* PCI parent (eg. a disk under a PCI SATA controller). In that
* case pdev->subordinate will be NULL for the parent.
*/
if (!pbus) {
dev_dbg(&pdev->dev, "Not a PCI-to-PCI bridge\n");
pdev = NULL;
break;
}
}
out:
list_for_each_entry_safe(node, tmp, &device_list, node)
Expand Down

0 comments on commit f63a904

Please sign in to comment.