[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>
This commit is contained in:
Muli Ben-Yehuda 2006-09-26 10:52:31 +02:00 committed by Andi Kleen
parent f38db651d5
commit 9f2dc46d5e
1 changed files with 2 additions and 0 deletions

View 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;