aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/omap-iommu-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iommu/omap-iommu-debug.c')
-rw-r--r--drivers/iommu/omap-iommu-debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/omap-iommu-debug.c b/drivers/iommu/omap-iommu-debug.c
index bad9f9da990d..103dbd92e256 100644
--- a/drivers/iommu/omap-iommu-debug.c
+++ b/drivers/iommu/omap-iommu-debug.c
@@ -274,7 +274,7 @@ static ssize_t debug_read_mem(struct file *file, char __user *userbuf,
274 mutex_lock(&iommu_debug_lock); 274 mutex_lock(&iommu_debug_lock);
275 275
276 area = omap_find_iovm_area(dev, (u32)ppos); 276 area = omap_find_iovm_area(dev, (u32)ppos);
277 if (IS_ERR(area)) { 277 if (!area) {
278 bytes = -EINVAL; 278 bytes = -EINVAL;
279 goto err_out; 279 goto err_out;
280 } 280 }
@@ -311,7 +311,7 @@ static ssize_t debug_write_mem(struct file *file, const char __user *userbuf,
311 } 311 }
312 312
313 area = omap_find_iovm_area(dev, (u32)ppos); 313 area = omap_find_iovm_area(dev, (u32)ppos);
314 if (IS_ERR(area)) { 314 if (!area) {
315 count = -EINVAL; 315 count = -EINVAL;
316 goto err_out; 316 goto err_out;
317 } 317 }