aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMuli Ben-Yehuda <muli@il.ibm.com>2006-09-26 10:52:31 +0200
committerAndi Kleen <andi@basil.nowhere.org>2006-09-26 10:52:31 +0200
commit9f2dc46d5ec6fd7787182d2232a1003af11879f1 (patch)
tree0687b1d5fa344c7c162f90d11933385cbad336a6 /arch
parentf38db651d5da5e10235fd7dd31095969fb7ef6fb (diff)
downloadkernel_samsung_smdk4412-9f2dc46d5ec6fd7787182d2232a1003af11879f1.zip
kernel_samsung_smdk4412-9f2dc46d5ec6fd7787182d2232a1003af11879f1.tar.gz
kernel_samsung_smdk4412-9f2dc46d5ec6fd7787182d2232a1003af11879f1.tar.bz2
[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>
Diffstat (limited to 'arch')
-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 96f6a86..b2182c9 100644
--- a/arch/x86_64/kernel/pci-calgary.c
+++ b/arch/x86_64/kernel/pci-calgary.c
@@ -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;