usbvision fix overflow of interfaces array
commitae64b688736b2aa3861ca02792b69041676329a2
authorOliver Neukum <oneukum@suse.com>
Tue, 27 Oct 2015 11:51:34 +0000 (27 09:51 -0200)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 13 Feb 2016 10:34:14 +0000 (13 10:34 +0000)
tree13886a51257209ae4d8840534372fb003671c9d1
parent8069deca8771dcdfcf3e9e34a71c918b8ddc76d5
usbvision fix overflow of interfaces array

commit 588afcc1c0e45358159090d95bf7b246fb67565f upstream.

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>
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/video/usbvision/usbvision-video.c