]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: serial: digi_acceleport: fix incomplete rx sanity check
authorJohan Hovold <johan@kernel.org>
Tue, 31 Jan 2017 16:17:28 +0000 (17:17 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 31 Jan 2017 17:32:54 +0000 (18:32 +0100)
commit1b0aed2b1600f6e5c7b9acfbd610a4e351ef5232
tree874d3a8f615c202d9217226edbb9388da92f5573
parent2d380889215fe20b8523345649dee0579821800c
USB: serial: digi_acceleport: fix incomplete rx sanity check

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