]> git.baikalelectronics.ru Git - kernel.git/commit
[media] dib0700: do not lock interruptible on tear-down paths
authorJiri Slaby <jslaby@suse.cz>
Thu, 3 Jan 2013 15:53:53 +0000 (12:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 12:42:33 +0000 (10:42 -0200)
commitf0fb7a3344c1ba20ab17ed8c64eac429e47d0cea
tree3af76c7fc2f066646b17dfcc183345d6dd04d91a
parentb9564bc42ad274e891b0e502830183ab2fbd09c2
[media] dib0700: do not lock interruptible on tear-down paths

When mutex_lock_interruptible is used on paths where a signal can be
pending, the device is not closed properly and cannot be reused.
This usually happens when you start tzap for example and send it a
TERM signal. The signal is pending while tear-down routines are
called. Hence streaming is not properly stopped in that case. And
the device stops working from that moment on.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/dvb-usb/dib0700_core.c