git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a1f83c
)
USB: serial: digi_acceleport: fix incomplete rx sanity check
author
Johan Hovold
<johan@kernel.org>
Tue, 31 Jan 2017 16:17:28 +0000
(17:17 +0100)
committer
Ben Hutchings
<ben@decadent.org.uk>
Mon, 5 Jun 2017 20:13:46 +0000
(21:13 +0100)
commit
1b0aed2b1600f6e5c7b9acfbd610a4e351ef5232
upstream.
Make sure the received data has the required headers before parsing it.
Also drop the redundant urb-status check, which has already been handled
by the caller.
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]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/digi_acceleport.c
patch
|
blob
|
history
diff --cc
drivers/usb/serial/digi_acceleport.c
Simple merge