USB: serial: kl5kusb105: fix open error path
authorJohan Hovold <johan@kernel.org>
Tue, 29 Nov 2016 15:55:01 +0000 (16:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Jun 2017 22:46:48 +0000 (00:46 +0200)
commit6017ea9df35665149c7fbf5f82e6799f8606a792
tree97b21ed1b61c1bc244d0ee42a48d3bbfb8e7fabc
parent6e97d31a5f2ff4b0f47e348df7e705b660296078
USB: serial: kl5kusb105: fix open error path

commit 6774d5f53271d5f60464f824748995b71da401ab upstream.

Kill urbs and disable read before returning from open on failure to
retrieve the line state.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/usb/serial/kl5kusb105.c