USB: cdc-acm: fix I/O after failed open
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:44 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jun 2014 19:12:39 +0000 (15:12 -0400)
commit39166123076c8944938ee9261cf3f23f5905392f
treea9f0c9409a85c38e8ed4d599aa9581907f0bd38e
parent52c84b338b8b42539b1e1a9be0ffaf41e730ccc2
USB: cdc-acm: fix I/O after failed open

commit e4c36076c2a6195ec62c35b03c3fde84d0087dc8 upstream.

Make sure to kill any already submitted read urbs on read-urb submission
failures in open in order to prevent doing I/O for a closed port.

Fixes: 088c64f81284 ("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