]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Calgary IOMMU: break out of pci_find_device_reverse if dev not found
authorMuli Ben-Yehuda <muli@il.ibm.com>
Tue, 26 Sep 2006 08:52:31 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:31 +0000 (10:52 +0200)
Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/pci-calgary.c

index 96f6a866afad530d3054bc481e00c4b53521d683..b2182c936305c006eac9b717fb139b68521e4fd7 100644 (file)
@@ -844,6 +844,8 @@ error:
                dev = pci_find_device_reverse(PCI_VENDOR_ID_IBM,
                                              PCI_DEVICE_ID_IBM_CALGARY,
                                              dev);
+               if (!dev)
+                       break;
                if (!translate_phb(dev)) {
                        pci_dev_put(dev);
                        continue;