aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuli Ben-Yehuda <muli@il.ibm.com>2006-09-26 04:52:31 -0400
committerAndi Kleen <andi@basil.nowhere.org>2006-09-26 04:52:31 -0400
commit9f2dc46d5ec6fd7787182d2232a1003af11879f1 (patch)
tree0687b1d5fa344c7c162f90d11933385cbad336a6
parentf38db651d5da5e10235fd7dd31095969fb7ef6fb (diff)
[PATCH] Calgary IOMMU: break out of pci_find_device_reverse if dev not found
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>
-rw-r--r--arch/x86_64/kernel/pci-calgary.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/pci-calgary.c b/arch/x86_64/kernel/pci-calgary.c
index 96f6a866afad..b2182c936305 100644
--- a/arch/x86_64/kernel/pci-calgary.c
+++ b/arch/x86_64/kernel/pci-calgary.c
@@ -844,6 +844,8 @@ error:
844 dev = pci_find_device_reverse(PCI_VENDOR_ID_IBM, 844 dev = pci_find_device_reverse(PCI_VENDOR_ID_IBM,
845 PCI_DEVICE_ID_IBM_CALGARY, 845 PCI_DEVICE_ID_IBM_CALGARY,
846 dev); 846 dev);
847 if (!dev)
848 break;
847 if (!translate_phb(dev)) { 849 if (!translate_phb(dev)) {
848 pci_dev_put(dev); 850 pci_dev_put(dev);
849 continue; 851 continue;