From: Vladis Dronov Date: Mon, 16 Nov 2015 17:55:11 +0000 (-0200) Subject: usbvision: fix crash on detecting device with invalid configuration X-Git-Tag: v3.2.77~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a71eddf2dd01d45d0d1314fce8a535da76053e7b;p=pandora-kernel.git usbvision: fix crash on detecting device with invalid configuration commit fa52bd506f274b7619955917abfde355e3d19ffe upstream. The usbvision driver crashes when a specially crafted usb device with invalid number of interfaces or endpoints is detected. This fix adds checks that the device has proper configuration expected by the driver. Reported-by: Ralf Spenneberg Signed-off-by: Vladis Dronov Signed-off-by: Mauro Carvalho Chehab [bwh: Backport to 3.2: adjust filename] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed