]> git.baikalelectronics.ru Git - kernel.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)
committerJohan Hovold <johan@kernel.org>
Mon, 16 Jan 2017 15:38:55 +0000 (16:38 +0100)
commitd355b0b6cc29fc5cfc00712f048558b778191d14
treed3588ab33ee9e103f5b94dbb2ff918abd5d2526c
parent095ed73b753cbfd908186d6eb6761a3f5e902152
USB: serial: ark3116: fix register-accessor error handling

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: f732f7e42c63 ("USB: ark3116: Setup some basic infrastructure for
new ark3116 driver.")
Fixes: 08d02e800a62 ("USB: ark3116: Make existing functions 16450-aware
and add close and release functions.")
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/ark3116.c