CMA: correct unlock target
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>
Thu, 29 May 2014 06:29:18 +0000 (15:29 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 29 May 2014 07:25:14 +0000 (09:25 +0200)
commitf70e3c4f8b6ab61f713e040822ec51f5de498146
tree37664fdf197609d2d445e6bde8d0e96fa6928ef4
parentbb56d0dc23aa3428c0b1901414bfcf698eb693fb
CMA: correct unlock target

'cma: Remove potential deadlock situation' introduces per cma area mutex
for bitmap management. It is good, but there is one mistake. When we
can't find appropriate area in bitmap, we release cma_mutex global lock
rather than cma->lock and this is a bug. So fix it.

Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers/base/dma-contiguous.c