USB: serial: kl5kusb105: fix open error path
authorJohan Hovold <johan@kernel.org>
Tue, 29 Nov 2016 15:55:01 +0000 (16:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 10:16:18 +0000 (11:16 +0100)
commit741523f3da82d6b32764a7fcb2d789b39597699f
tree6440510dca61b4378626fdab1698cdd8e52ec7b7
parentf34b7e027eeba14c811dce51bf848bfd69562abe
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/kl5kusb105.c