USB: race fixes for usb-serial, step 2
authorOliver Neukum <oneukum@suse.de>
Sat, 13 Jan 2007 06:31:27 +0000 (07:31 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Feb 2007 23:44:38 +0000 (15:44 -0800)
commit4b10f0f3a0d4caa8b615cd1f770a70912967a3cd
tree3a3b96e0f40bfc774aeb6790f7ed371afef11748
parent34ef50e5b1f96c2d8c0f3d28b7d407743806256c
USB: race fixes for usb-serial, step 2

- take BKL before looking up a driver to associate with a device to make
  sure the module is not unloaded after looking up but before association
  & bumping module count

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/usb-serial.c