aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-01-06 19:15:18 +0100
committerMoyster <oysterized@gmail.com>2017-06-17 15:49:47 +0200
commit6f6a7983ac6836f58aa03d642fb96e109bc8ff9b (patch)
tree81eaf356f6a2ec420faa9d6df256bd2d07731507 /lib
parent7525bd1ab22ff7ebac34dcdd8169169f227bab34 (diff)
USB: serial: ch341: fix control-message error handling
commit 2d5a9c72d0c4ac73cf97f4b7814ed6c44b1e49ae upstream. 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") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions