]> asedeno.scripts.mit.edu Git - linux.git/commit
cdc-acm: fix race between reset and control messaging
authorOliver Neukum <oneukum@suse.com>
Thu, 4 Oct 2018 13:49:06 +0000 (15:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Oct 2018 14:13:42 +0000 (16:13 +0200)
commit9397940ed812b942c520e0c25ed4b2c64d57e8b9
tree49b483d6fa9f63c7578990c410d0e31fd968c57b
parent81f7567c51ad97668d1c3a48e8ecc482e64d4161
cdc-acm: fix race between reset and control messaging

If a device splits up a control message and a reset() happens
between the parts, the message is lost and already recieved parts
must be dropped.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Fixes: 1aba579f3cf51 ("cdc-acm: handle read pipe errors")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c