]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitf3033aecf2341a4e2669c63ed78a190a1c3e7a3a
tree922c9e4476283fb1eb346c12bd9b0ee8be556a8a
parent9bb24a7e49c33c16c4d9d7d3496f46626e573d02
[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