]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/iommu/omap-iommu.c
Merge branch 'parisc-3.15-4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller...
[karo-tx-linux.git] / drivers / iommu / omap-iommu.c
index 8acea87cbc0e6c14aeefe725d86f01ef67d04bc6..7fcbfc498fa93c2527968191e6658be99eaa7b2d 100644 (file)
@@ -520,7 +520,8 @@ static void flush_iopte_range(u32 *first, u32 *last)
 static void iopte_free(u32 *iopte)
 {
        /* Note: freed iopte's must be clean ready for re-use */
-       kmem_cache_free(iopte_cachep, iopte);
+       if (iopte)
+               kmem_cache_free(iopte_cachep, iopte);
 }
 
 static u32 *iopte_alloc(struct omap_iommu *obj, u32 *iopgd, u32 da)