]> git.baikalelectronics.ru Git - kernel.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)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 13:36:02 +0000 (11:36 -0200)
commit78a88c38229e767f59dc26d85102506057d7eeff
tree1110302c66e4c2482eaaff93cf91fd6d38550985
parentaaca7de57136bb61f6ca2e6068a11e6a14fa0649
[media] usbvision: fix crash on detecting device with invalid configuration

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>
drivers/media/usb/usbvision/usbvision-video.c