]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: race fixes for usb-serial step 1
authorOliver Neukum <oneukum@suse.de>
Sat, 13 Jan 2007 06:29:26 +0000 (07:29 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Feb 2007 23:44:38 +0000 (15:44 -0800)
commit34ef50e5b1f96c2d8c0f3d28b7d407743806256c
treebdf5fe45a270ebd77c895c7563c3fbf4c230019a
parentfdcba53e2d58272bcdb5f1fad694602ccf02ad46
USB: race fixes for usb-serial step 1

- introduce a spinlock for serial_table to eliminate the window between
  looking up a device and getting a reference
- delay inscription of a new device into serial_table until it is fully
  initialised
- make sure disconnect() kills all URBs to avoid leckage across a soft unbind

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