]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ftdi_sio: Replace BKL with a mutex
authorAlessio Igor Bogani <abogani@texware.it>
Tue, 2 Feb 2010 15:18:28 +0000 (16:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:52 +0000 (14:54 -0800)
commitef4a5ebdec5289cd381e22ef9e38615a008c3ee0
treeb20c10b5e32cfc04054a5a30e7d7032dab6858d2
parentb72c5b053ea1c26402f5742c8c740e99d50a2a68
USB: ftdi_sio: Replace BKL with a mutex

As Alan Cox have pinpointed the driver still required protection against
parallels calls to the config ioctl(). If lock is still necessary the use of
BKL is abused here. So replace BKL with a more convenient mutex.

Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Johan Hovold <jhovold@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Daniel Mack <daniel@caiaq.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c