cdc-acm: fix race between callback and unthrottle
authorOliver Neukum <oneukum@suse.de>
Fri, 20 Mar 2015 08:24:24 +0000 (09:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 09:50:52 +0000 (10:50 +0100)
commit36e59e0d70d6150e7a2155c54612ea875e88ce8d
tree210a79c37d9a262b1d6e8f37db2429c1c21edef7
parentc0ab6bb0597363532f178f3cd7b7fb527eef39e2
cdc-acm: fix race between callback and unthrottle

Abn URB may be may marked free only after the buffer has been
processed or there is a small window during which it could
be submitted on another CPU and overwrite an unprocessed buffer

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c