commit | 84443215cf54861f3013253817afaf156efb1453 | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Tue Jan 31 17:17:29 2017 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun May 14 14:00:18 2017 +0200 |
tree | b3a92b5fa54d8d86892282f60faf45758dc192f9 | |
parent | b6c17077e05673b9f4f59b682dd3c48394b415fd [diff] |
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>