linux/drivers/media/usb/usbvision
Johan Hovold eacb975b48 [media] usbvision: fix NULL-deref at probe
Make sure to check the number of endpoints to avoid dereferencing a
NULL-pointer or accessing memory beyond the endpoint array should a
malicious device lack the expected endpoints.

Fixes: 2a9f8b5d25 ("V4L/DVB (5206): Usbvision: set alternate interface
modification")

Cc: stable <stable@vger.kernel.org>     # 2.6.21
Cc: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-04-10 07:30:58 -03:00
..
Kconfig [media] Kconfig: merge all customise options into just one 2012-08-21 08:05:06 -03:00
Makefile
usbvision-cards.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
usbvision-cards.h
usbvision-core.c [media] media/usbvision: remove ctrl_urb_wq 2017-02-03 13:40:20 -02:00
usbvision-i2c.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
usbvision-video.c [media] usbvision: fix NULL-deref at probe 2017-04-10 07:30:58 -03:00
usbvision.h [media] media/usbvision: remove ctrl_urb_wq 2017-02-03 13:40:20 -02:00