USB: serial: kl5kusb105: fix open error path
authorJohan Hovold <johan@kernel.org>
Tue, 29 Nov 2016 15:55:01 +0000 (16:55 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 30 Nov 2016 09:54:30 +0000 (10:54 +0100)
commit6774d5f53271d5f60464f824748995b71da401ab
tree741e831043964b455494fb9929a575c56310a574
parent0c9bd6004d258d465a69c7612fa8c80d83f7865b
USB: serial: kl5kusb105: fix open error path

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

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/kl5kusb105.c