commit | c528fcb116e61afc379a2e0a0f70906b937f1e2c | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Tue Jan 31 17:17:29 2017 +0100 |
committer | Johan Hovold <johan@kernel.org> | Tue Jan 31 18:33:00 2017 +0100 |
tree | 4140133888712a6f6c210954dfd04d97dbe55bc7 | |
parent | 1b0aed2b1600f6e5c7b9acfbd610a4e351ef5232 [diff] |
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>