diff options
author | 2024-10-15 14:23:38 +0200 | |
---|---|---|
committer | 2024-10-18 10:43:03 +0200 | |
commit | 4c76f331a9a173ac8fe1297a9231c2a38f88e368 (patch) | |
tree | e1b9468041be94ccc11e365b19e0644ba772b088 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | media: dvb-core: add missing buffer index check (diff) | |
download | wireguard-linux-4c76f331a9a173ac8fe1297a9231c2a38f88e368.tar.xz wireguard-linux-4c76f331a9a173ac8fe1297a9231c2a38f88e368.zip |
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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions