summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/cx231xx/cx231xx-audio.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-03-13 09:53:56 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-04-10 07:31:45 -0300
commit0cd273bb5e4d1828efaaa8dfd11b7928131ed149 (patch)
tree4b4ab3e86013d5fe0f1af5f255ed1e3292f3ff7e /drivers/media/usb/cx231xx/cx231xx-audio.c
parenteacb975b48272f54532b62f515a3cf7eefa35123 (diff)
downloadblackbird-op-linux-0cd273bb5e4d1828efaaa8dfd11b7928131ed149.tar.gz
blackbird-op-linux-0cd273bb5e4d1828efaaa8dfd11b7928131ed149.zip
[media] cx231xx-cards: 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: e0d3bafd0258 ("V4L/DVB (10954): Add cx231xx USB driver") Cc: stable <stable@vger.kernel.org> # 2.6.30 Cc: Sri Deevi <Srinivasa.Deevi@conexant.com> 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>
Diffstat (limited to 'drivers/media/usb/cx231xx/cx231xx-audio.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud