usb: cdc-wdm: Fix race between autosuspend and reading from the device
authorOliver Neukum <oliver@neukum.org>
Sat, 27 Feb 2010 19:54:59 +0000 (20:54 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Mar 2010 14:24:15 +0000 (07:24 -0700)
commit922a5eadd5a3aa0b806be0c18694b618d41d0784
tree25d6a630e5bd92ff0c900d94125481f53e9b377a
parent860e41a71c1731e79e1920dc42676bafc925af5e
usb: cdc-wdm: Fix race between autosuspend and reading from the device

While an available response is read the device must not
be autosuspended. This requires a flag dedicated to that
purpose.

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