1
0
Fork 0
alistair23-linux/drivers/usb/class
Johan Hovold e144ed28be USB: cdc-acm: fix write and resume race
Fix race between write() and resume() due to improper locking that could
lead to writes being reordered.

Resume must be done atomically and susp_count be protected by the
write_lock in order to prevent racing with write(). This could otherwise
lead to writes being reordered if write() grabs the write_lock after
susp_count is decremented, but before the delayed urb is submitted.

Fixes: 11ea859d64 ("USB: additional power savings for cdc-acm devices
that support remote wakeup")

Cc: <stable@vger.kernel.org>	# v2.6.27
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-27 15:04:09 -07:00
..
Kconfig USB: regroup all depends on USB within an if USB block 2013-04-09 16:49:07 -07:00
Makefile USB: add USB test and measurement class driver 2008-10-17 14:40:51 -07:00
cdc-acm.c USB: cdc-acm: fix write and resume race 2014-05-27 15:04:09 -07:00
cdc-acm.h cdc-acm: add TIOCMIWAIT 2013-12-03 10:23:46 -08:00
cdc-wdm.c usb: cdc-wdm: resp_count can be 0 even if WDM_READ is set 2014-01-12 20:13:28 -08:00
usblp.c usb: delete non-required instances of include <linux/init.h> 2014-01-08 15:01:39 -08:00
usbtmc.c usb: delete non-required instances of include <linux/init.h> 2014-01-08 15:01:39 -08:00