USB: serial: ch341: fix open error handling
authorJohan Hovold <johan@kernel.org>
Fri, 6 Jan 2017 18:15:13 +0000 (19:15 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 9 Jan 2017 13:55:38 +0000 (14:55 +0100)
commitf2950b78547ffb8475297ada6b92bc2d774d5461
tree59e72b647441540b647a4571d091e3407e62d37d
parent030ee7ae52a46a2be52ccc8242c4a330aba8d38e
USB: serial: ch341: fix open error handling

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

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