[media] usbvision fix overflow of interfaces array
authorOliver Neukum <oneukum@suse.com>
Tue, 27 Oct 2015 11:51:34 +0000 (09:51 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 17 Nov 2015 16:56:31 +0000 (14:56 -0200)
commit588afcc1c0e45358159090d95bf7b246fb67565f
treece527d3f473b71cd398912d3876acc1ae4350bfc
parent3ff863b87e8aacef96d66b132b43e296bb8cd973
[media] usbvision fix overflow of interfaces array

This fixes the crash reported in:
http://seclists.org/bugtraq/2015/Oct/35
The interface number needs a sanity check.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Cc: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/usbvision/usbvision-video.c