]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: kl5kusb105: fix line-state error handling
authorJohan Hovold <johan@kernel.org>
Tue, 10 Jan 2017 11:05:37 +0000 (12:05 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 10 Jan 2017 15:42:26 +0000 (16:42 +0100)
commit52f5242be8a943be0c439b5cd1a6fdc34e0d6901
tree487fbe256e46b6d4b6b042e3bcb94a518e102423
parentd55754e844510ca616d030926de5a185c1f2e194
USB: serial: kl5kusb105: fix line-state error handling

The current implementation failed to detect short transfers when
attempting to read the line state, and also, to make things worse,
logged the content of the uninitialised heap transfer buffer.

Fixes: 8654f05262ee ("USB: kl5kusb105: fix DMA buffers on stack")
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/kl5kusb105.c