staging/easycap: Eliminate BKL
authorMike Thomas <rmthomas@sciolus.org>
Sun, 7 Nov 2010 20:09:19 +0000 (20:09 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 10 Nov 2010 00:31:15 +0000 (16:31 -0800)
No locking is required for normal operation of the driver, but locking
is needed to prevent an Oops during some hot-unplugging scenarios.  The
BKL is replaced here by mutex locks together with traps to detect null
pointers following asynchronous device disconnection.

Signed-off-by: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found