]> git.itanic.dy.fi Git - linux-stable/commit
USB: serial: keyspan_pda: fix receive sanity checks
authorJohan Hovold <johan@kernel.org>
Tue, 31 Jan 2017 16:17:29 +0000 (17:17 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 31 Jan 2017 17:33:00 +0000 (18:33 +0100)
commitc528fcb116e61afc379a2e0a0f70906b937f1e2c
tree4140133888712a6f6c210954dfd04d97dbe55bc7
parent1b0aed2b1600f6e5c7b9acfbd610a4e351ef5232
USB: serial: keyspan_pda: fix receive sanity checks

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>
drivers/usb/serial/keyspan_pda.c