patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / ppc64 / kernel / iommu.c
index fb32102..5cac0d2 100644 (file)
@@ -491,7 +491,7 @@ void *iommu_alloc_consistent(struct iommu_table *tbl, size_t size,
         */
        if (order >= IOMAP_MAX_ORDER) {
                printk("iommu_alloc_consistent size too large: 0x%lx\n", size);
-               return (void *)DMA_ERROR_CODE;
+               return NULL;
        }
 
        if (!tbl)