]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit146cc8a17a3b4996f6805ee5c080e7101277c410
tree487fbe256e46b6d4b6b042e3bcb94a518e102423
parent55fa15b5987db22b4f35d3f0798928c126be5f1c
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: abf492e7b3ae ("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