summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2020-01-03 19:35:09 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-03-12 19:25:51 +0300
commit998912346c0da53a6dbb71fab3a138586b596b30 (patch)
treee163408b13a5d52fc30972ee9409c644f5cc425f /tools/perf/scripts/python/export-to-postgresql.py
parent8ff3cf4824d123ecf6424cdb93ca8ca37dbd50af (diff)
downloadlinux-998912346c0da53a6dbb71fab3a138586b596b30.tar.xz
media: ov519: add missing endpoint sanity checks
Make sure to check that we have at least one endpoint before accessing the endpoint array to avoid dereferencing a NULL-pointer on stream start. Note that these sanity checks are not redundant as the driver is mixing looking up altsettings by index and by number, which need not coincide. Fixes: 1876bb923c98 ("V4L/DVB (12079): gspca_ov519: add support for the ov511 bridge") Fixes: b282d87332f5 ("V4L/DVB (12080): gspca_ov519: Fix ov518+ with OV7620AE (Trust spacecam 320)") Cc: stable <stable@vger.kernel.org> # 2.6.31 Cc: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions