summaryrefslogtreecommitdiff
path: root/drivers/s390
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-01-31 19:17:29 +0300
committerBen Hutchings <ben@decadent.org.uk>2017-06-05 23:13:46 +0300
commitb9d711c45a310cd150bddced2604a70115059c2b (patch)
treec60d5407adaa550213719ecdf8aeeb91ad76def0 /drivers/s390
parent0ec745967dbf486a05082f67e67910afa3a9d319 (diff)
downloadlinux-b9d711c45a310cd150bddced2604a70115059c2b.tar.xz
USB: serial: keyspan_pda: fix receive sanity checks
commit c528fcb116e61afc379a2e0a0f70906b937f1e2c upstream. Make sure to check for short transfers before parsing the receive buffer to avoid acting on stale data. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org> [bwh: Backported to 3.2: - Adjust context - Keep the check for !tty in the data case] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions