[PATCH] ppc64: Fix add notifier crashes
[linux-2.6.git] / arch / powerpc / platforms / pseries / iommu.c
index 9e90d41131d8b115ffff46877f97e4bb3e3c85a5..a73faafaac8cf489a038e155f2fed045373a38eb 100644 (file)
@@ -498,7 +498,7 @@ static int iommu_reconfig_notifier(struct notifier_block *nb, unsigned long acti
 
        switch (action) {
        case PSERIES_RECONFIG_REMOVE:
-               if (pci->iommu_table &&
+               if (pci && pci->iommu_table &&
                    get_property(np, "ibm,dma-window", NULL))
                        iommu_free_table(np);
                break;