提交 26548900 编写于 作者: D Daniel Walker 提交者: Tony Lindgren

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 <julia@diku.dk>
Cc: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: NDaniel Walker <dwalker@fifo99.com>
Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 ba6a1179
...@@ -363,8 +363,9 @@ void *da_to_va(struct iommu *obj, u32 da) ...@@ -363,8 +363,9 @@ void *da_to_va(struct iommu *obj, u32 da)
goto out; goto out;
} }
va = area->va; va = area->va;
mutex_unlock(&obj->mmap_lock);
out: out:
mutex_unlock(&obj->mmap_lock);
return va; return va;
} }
EXPORT_SYMBOL_GPL(da_to_va); EXPORT_SYMBOL_GPL(da_to_va);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册