]> git.baikalelectronics.ru Git - kernel.git/commit
[media] dib9000: implement error handling for DibAcquireLock
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Tue, 6 Mar 2012 20:08:29 +0000 (17:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 19 Mar 2012 17:36:24 +0000 (14:36 -0300)
commite088387d6a9d90d3627836bc4e21389a39ec22ce
tree922c9e4476283fb1eb346c12bd9b0ee8be556a8a
parent0f17b15961645adcfa3b4e92c22129b8c15340f0
[media] dib9000: implement error handling for DibAcquireLock

DibAcquireLock() is implemented as mutex_lock_interruptible()
but the driver does not handle unsuccessful locking.
As a result it may lead to unlock of an unheld mutex.

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>
drivers/media/dvb/frontends/dib9000.c