Skip to content

Commit

Permalink
omap: iovmm: Add missing mutex_unlock
Browse files Browse the repository at this point in the history
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: Daniel Walker <dwalker@fifo99.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Daniel Walker authored and Tony Lindgren committed Oct 6, 2009
1 parent ba6a117 commit 2654890
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/plat-omap/iovmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2654890

Please sign in to comment.