diff options
author | Johan Hovold <johan@kernel.org> | 2017-03-13 09:53:56 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-04-10 07:31:45 -0300 |
commit | 0cd273bb5e4d1828efaaa8dfd11b7928131ed149 (patch) | |
tree | 4b4ab3e86013d5fe0f1af5f255ed1e3292f3ff7e /drivers/media/usb/cx231xx/cx231xx-audio.c | |
parent | eacb975b48272f54532b62f515a3cf7eefa35123 (diff) | |
download | blackbird-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