[media] s5p-fimc: Fix locking in subdev set_crop op
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Sat, 21 Apr 2012 21:46:30 +0000 (18:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 8 May 2012 12:07:42 +0000 (09:07 -0300)
commite985dbf7d93e2a3e114b4525413e50f83613e0cb
tree7f258fa413be94cf1f7d9ac24d32c1d99f9ba67b
parent910a5f2e9642d5be373beae3d29e1c4a3bc7d83b
[media] s5p-fimc: Fix locking in subdev set_crop op

When setting TRY crop on the sub-device the mutex was erroneously acquired
rather than released on exit path. This bug is present in kernels starting
from v3.2.

Cc: stable@vger.kernel.org
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-capture.c