aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/class/cdc-acm.h
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2014-05-26 19:23:36 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-26 15:15:41 -0400
commit2d0227bd3d32c96be8c14fd860b0de9fbc87b155 (patch)
treeb6ee930d0c3ebc2720610df799dd9dafad1e01b7 /drivers/usb/class/cdc-acm.h
parente0303ebe7ffffe1fabed0c3924e4e5d24a391174 (diff)
USB: cdc-acm: fix write and suspend race
commit 5a345c20c17d87099224a4be12e69e5bd7023dca upstream. Fix race between write() and suspend() which could lead to writes being dropped (or I/O while suspended) if the device is runtime suspended while a write request is being processed. Specifically, suspend() releases the write_lock after determining the device is idle but before incrementing the susp_count, thus leaving a window where a concurrent write() can submit an urb. Fixes: 11ea859d64b6 ("USB: additional power savings for cdc-acm devices that support remote wakeup") Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class/cdc-acm.h')
0 files changed, 0 insertions, 0 deletions