]> www.infradead.org Git - users/jedix/linux-maple.git/commit
[media] usbvision: fix crash on detecting device with invalid configuration
authorVladis Dronov <vdronov@redhat.com>
Mon, 16 Nov 2015 17:55:11 +0000 (15:55 -0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:46:02 +0000 (15:46 -0700)
commitc29c8abac29ceea13fe58bace2b510d6a9089016
tree615003682249b5d82bd1235903855dbc244b5b68
parent7245b298e082c7f0191f627dbb0fc13c0594cee9
[media] usbvision: fix crash on detecting device with invalid configuration

Orabug: stable_rc4

[ Upstream commit fa52bd506f274b7619955917abfde355e3d19ffe ]

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 <ralf@spenneberg.net>
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 37dee22181885e7847e8c95843b6e94138edbd43)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/media/usb/usbvision/usbvision-video.c