aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Walker <[email protected]>2009-10-05 13:31:45 -0700
committerTony Lindgren <[email protected]>2009-10-06 08:31:50 -0700
commit265489003c463f3d78d622fba60d56d16b3009dd (patch)
tree488aec61086cf601a2dcea50e1a189ba7b335215
parentba6a117944f958a5b3fb6631b9ac7eaed3a4cb2a (diff)
omap: iovmm: Add missing mutex_unlock
I was using Coccinelle with the mutex_unlock semantic patch, and it unconvered this problem. It appears to be a valid missing unlock issue. This change should correct it by moving the unlock below the label. This patch is against the mainline kernel. Cc: Julia Lawall <[email protected]> Cc: Hiroshi DOYU <[email protected]> Signed-off-by: Daniel Walker <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
-rw-r--r--arch/arm/plat-omap/iovmm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c
index 0e5573d5bb57..dc3fac3dd0ea 100644
--- a/arch/arm/plat-omap/iovmm.c
+++ b/arch/arm/plat-omap/iovmm.c
@@ -363,8 +363,9 @@ void *da_to_va(struct iommu *obj, u32 da)
goto out;
}
va = area->va;
- mutex_unlock(&obj->mmap_lock);
out:
+ mutex_unlock(&obj->mmap_lock);
+
return va;
}
EXPORT_SYMBOL_GPL(da_to_va);