[PATCH] PCI dev node without an OF node

Jimi Xenidis jimix at watson.ibm.com
Wed Oct 5 06:06:40 EST 2005


>>>>> "JX" == Jimi Xenidis <jimix at watson.ibm.com> writes:

oops sorry sent an early patch file and forgot the __func__ in the DBG
statement.

Signed-off-by: Jimi Xenidis <jimix at watson.ibm.com>

diff -r 549d78c4d7ed arch/ppc64/kernel/pSeries_iommu.c
--- a/arch/ppc64/kernel/pSeries_iommu.c	Mon Oct  3 15:07:10 2005
+++ b/arch/ppc64/kernel/pSeries_iommu.c	Tue Oct  4 16:04:00 2005
@@ -513,6 +513,11 @@
 	 * already allocated.
 	 */
 	dn = pci_device_to_OF_node(dev);
+	if (dn == NULL) {
+		DBG("%s, dev %p (%s) has no iommu table\n", __func__,
+		    dev, pci_name(dev));
+		return;
+	}
 
 	for (pdn = dn; pdn && pdn->data && !PCI_DN(pdn)->iommu_table;
 	     pdn = pdn->parent) {



More information about the Linuxppc64-dev mailing list