Oliver Neukum e9b3c610a0 USB: serial: garmin_gps: add sanity checking for data length
We must not process packets shorter than a packet ID

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reported-and-tested-by: syzbot+d29e9263e13ce0b9f4fd@syzkaller.appspotmail.com
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
2020-04-22 09:10:36 +02:00
..
2018-10-13 00:50:38 -04:00
2019-12-10 11:34:28 +01:00
2020-03-26 11:15:30 +01:00
2017-11-04 11:58:00 +01:00
2018-10-13 00:50:41 -04:00