iommu/omap: Replace BUG() in iopgtable_store_entry_core()
[deliverable/linux.git] / drivers / iommu / omap-iommu.c
index c05d48f88596bf803159529b3a4509d23d344bb6..f6cf728ee32ac4bf8beeadcc43ee50c79d876843 100644 (file)
@@ -628,10 +628,12 @@ iopgtable_store_entry_core(struct omap_iommu *obj, struct iotlb_entry *e)
                break;
        default:
                fn = NULL;
-               BUG();
                break;
        }
 
+       if (WARN_ON(!fn))
+               return -EINVAL;
+
        prot = get_iopte_attr(e);
 
        spin_lock(&obj->page_table_lock);
This page took 0.027284 seconds and 5 git commands to generate.