]> git.karo-electronics.de Git - linux-beck.git/commit
USB: serial: ark3116: fix register-accessor error handling
authorJohan Hovold <johan@kernel.org>
Thu, 12 Jan 2017 13:56:09 +0000 (14:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Feb 2017 10:10:52 +0000 (11:10 +0100)
commit960a38eae80a9e5ba9688c0eb92114f6de028904
tree5cad63f15b3a259c0864df64de76584a4dd9c49c
parenta2ce74e35d5fd1afb5304b645c3b459c922a2c4a
USB: serial: ark3116: fix register-accessor error handling

commit 9fef37d7cf170522fb354d6d0ea6de09b9b16678 upstream.

The current implementation failed to detect short transfers, something
which could lead to bits of the uninitialised heap transfer buffer
leaking to user space.

Fixes: 149fc791a452 ("USB: ark3116: Setup some basic infrastructure for new ark3116 driver.")
Fixes: f4c1e8d597d1 ("USB: ark3116: Make existing functions 16450-aware and add close and release functions.")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ark3116.c