USB: serial: ch341: fix open error handling
commitf8969b9416ebcd7f216e319fc9e97e17d2bd2387
authorJohan Hovold <johan@kernel.org>
Fri, 6 Jan 2017 18:15:13 +0000 (6 19:15 +0100)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 6 Mar 2017 22:29:16 +0000 (6 17:29 -0500)
tree5a9e777ae991454c192e381ad9a3d3e772236286
parentc72629ab768645a9b16d263717d88d8c1c56fc3c
USB: serial: ch341: fix open error handling

[ Upstream commit f2950b78547ffb8475297ada6b92bc2d774d5461 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/usb/serial/ch341.c