提交 9f2dc46d 编写于 作者: M Muli Ben-Yehuda 提交者: Andi Kleen

[PATCH] Calgary IOMMU: break out of pci_find_device_reverse if dev not found

Signed-off-by: NMuli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: NJon Mason <jdmason@us.ibm.com>
Signed-off-by: NAndi Kleen <ak@suse.de>
上级 f38db651
......@@ -844,6 +844,8 @@ static int __init calgary_init(void)
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册