Home
last modified time | relevance | path

Searched hist:"2 d5a9c72d0c4ac73cf97f4b7814ed6c44b1e49ae" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/usb/serial/
H A Dch341.cdiff 2d5a9c72d0c4ac73cf97f4b7814ed6c44b1e49ae Fri Jan 06 19:15:18 CET 2017 Johan Hovold <johan@kernel.org> USB: serial: ch341: fix control-message error handling

A short control transfer would currently fail to be detected, something
which could lead to stale buffer data being used as valid input.

Check for short transfers, and make sure to log any transfer errors.

Note that this also avoids leaking heap data to user space (TIOCMGET)
and the remote device (break control).

Fixes: 6ce76104781a ("USB: Driver for CH341 USB-serial adaptor")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>