]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cdc-acm: fix open and suspend race
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:42 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:09 +0000 (15:04 -0700)
commit2e601e60c9556b280ad24864863df4694d3bee6e
tree009c2cf915a37af41b63c3226886cf027b162e5f
parentda7da334cd8971915069d1367eb45e4c43ec2e32
USB: cdc-acm: fix open and suspend race

We must not do the usb_autopm_put_interface() before submitting the read
urbs or we might end up doing I/O to a suspended device.

Fixes: 423743b13ab1 ("USB: cdc-acm: re-write read processing")
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c