projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iommu/omap: Replace BUG() in iopgtable_store_entry_core()
[deliverable/linux.git]
/
drivers
/
iommu
/
omap-iommu.c
diff --git
a/drivers/iommu/omap-iommu.c
b/drivers/iommu/omap-iommu.c
index c05d48f88596bf803159529b3a4509d23d344bb6..f6cf728ee32ac4bf8beeadcc43ee50c79d876843 100644
(file)
--- a/
drivers/iommu/omap-iommu.c
+++ b/
drivers/iommu/omap-iommu.c
@@
-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.