diff options
Diffstat (limited to 'drivers/acpi/pci_root.c')
| -rw-r--r-- | drivers/acpi/pci_root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 8a5bf3b356fa..55b5b90c2a44 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
| @@ -395,7 +395,7 @@ struct pci_dev *acpi_get_pci_dev(acpi_handle handle) | |||
| 395 | fn = adr & 0xffff; | 395 | fn = adr & 0xffff; |
| 396 | 396 | ||
| 397 | pdev = pci_get_slot(pbus, PCI_DEVFN(dev, fn)); | 397 | pdev = pci_get_slot(pbus, PCI_DEVFN(dev, fn)); |
| 398 | if (hnd == handle) | 398 | if (!pdev || hnd == handle) |
| 399 | break; | 399 | break; |
| 400 | 400 | ||
| 401 | pbus = pdev->subordinate; | 401 | pbus = pdev->subordinate; |
