From: Johan Hovold Date: Tue, 31 Jan 2017 16:17:28 +0000 (+0100) Subject: USB: serial: digi_acceleport: fix incomplete rx sanity check X-Git-Tag: v3.2.89~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ec745967dbf486a05082f67e67910afa3a9d319;p=pandora-kernel.git USB: serial: digi_acceleport: fix incomplete rx sanity check 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 Signed-off-by: Johan Hovold [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed