summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2024-10-15 15:23:38 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2024-10-18 11:43:03 +0300
commit4c76f331a9a173ac8fe1297a9231c2a38f88e368 (patch)
treee1b9468041be94ccc11e365b19e0644ba772b088 /tools/perf/scripts/python/exported-sql-viewer.py
parentfa88dc7db176c79b50adb132a56120a1d4d9d18b (diff)
downloadlinux-4c76f331a9a173ac8fe1297a9231c2a38f88e368.tar.xz
media: v4l2-ctrls-api: fix error handling for v4l2_g_ctrl()
As detected by Coverity, the error check logic at get_ctrl() is broken: if ptr_to_user() fails to fill a control due to an error, no errors are returned and v4l2_g_ctrl() returns success on a failed operation, which may cause applications to fail. Add an error check at get_ctrl() and ensure that it will be returned to userspace without filling the control value if get_ctrl() fails. Fixes: 71c689dc2e73 ("media: v4l2-ctrls: split up into four source files") Cc: stable@vger.kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions