summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-03-13 09:53:59 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-04-05 15:07:31 -0300
commitaa58fedb8c7b6cf2f05941d238495f9e2f29655c (patch)
treedf9ba8889eb163b68126878e641b28c2ace1715f /tools/perf/scripts/python
parent6ea87867e552500b242cd5be3590d6c1ff91f508 (diff)
downloadlinux-aa58fedb8c7b6cf2f05941d238495f9e2f29655c.tar.gz
linux-aa58fedb8c7b6cf2f05941d238495f9e2f29655c.zip
[media] gspca: konica: add missing endpoint sanity check
Make sure to check the number of endpoints to avoid accessing memory beyond the endpoint array should a device lack the expected endpoints. Note that, as far as I can tell, the gspca framework has already made sure there is at least one endpoint in the current alternate setting so there should be no risk for a NULL-pointer dereference here. Fixes: b517af722860 ("V4L/DVB: gspca_konica: New gspca subdriver for konica chipset using cams") Cc: stable <stable@vger.kernel.org> # 2.6.37 Cc: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions