usb: cdc-wdm: Fix order in disconnect and fix locking
authorOliver Neukum <oliver@neukum.org>
Sat, 27 Feb 2010 19:56:47 +0000 (20:56 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Mar 2010 14:24:17 +0000 (07:24 -0700)
commitd93d16e9aa58887feadd999ea26b7b8139e98b56
tree47cd5e95bee9ccd52aa5ccfff4c87af78d605ad7
parent62e6685470fb04fb7688ecef96c39160498721d5
usb: cdc-wdm: Fix order in disconnect and fix locking

- as the callback can schedule work, URBs must be killed first
- if the driver causes an autoresume, the caller must handle locking

Signed-off-by: Oliver Neukum <neukum@b1-systems.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-wdm.c