USB: serial: ch341: fix open error handling
authorJohan Hovold <johan@kernel.org>
Fri, 6 Jan 2017 18:15:13 +0000 (19:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:17:20 +0000 (20:17 +0100)
commitbc74606d8d80c188ba1ef676a6859510b3c65bf9
tree3bc5e9a2a2b2e17bebf92dbcc801e908260b7272
parente29f709c2f56c7ad589fd2de42fe395b1c6fadd6
USB: serial: ch341: fix open error handling

commit f2950b78547ffb8475297ada6b92bc2d774d5461 upstream.

Make sure to stop the interrupt URB before returning on errors during
open.

Fixes: 664d5df92e88 ("USB: usb-serial ch341: support for DTR/RTS/CTS")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ch341.c