]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 May 2012 17:46:18 +0000 (10:46 -0700)
commit817a2eb566911b127a57cf3561bb88c98e4b6348
tree33d94bb8a57cd1b53559b484306a58862e9eef14
parent4d650fc196b3d6a600edfb7ed72ac72b47ea6185
media: s5p-fimc: Fix locking in subdev set_crop op

commit e985dbf7d93e2a3e114b4525413e50f83613e0cb upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/video/s5p-fimc/fimc-capture.c