]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drxk: Does not unlock mutex if sanity check failed in scu_command()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 5 Apr 2012 21:53:20 +0000 (18:53 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:13:57 +0000 (13:13 +0100)
commit2c51332d50dd5eba50821d0decc4f64e4b71226e
tree396dcac22d2b16f3c7d6be74f7797f5e135b9188
parenta15d032c254a9d0cd0640190cef33a5b840290c7
drxk: Does not unlock mutex if sanity check failed in scu_command()

commit e4459e1682c107d7ee1bf102c1ba534230e9b50b upstream.

If sanity check fails in scu_command(), goto error leads to unlock of
an unheld mutex. The check should not fail in reality, but it nevertheless
worth fixing.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/dvb/frontends/drxk_hard.c