aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-03-03 12:01:59 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-04-21 16:54:32 +0200
commit7c3bae3f430af6b4fcbdb7272e191e266fd94b45 (patch)
tree9799b64374c29949a50153343f93d5e71a80b288 /include/media
parentmedia: iguanair: rc drivers no longer need to do locking (diff)
downloadwireguard-linux-7c3bae3f430af6b4fcbdb7272e191e266fd94b45.tar.xz
wireguard-linux-7c3bae3f430af6b4fcbdb7272e191e266fd94b45.zip
media: v4l2-ctrls: v4l2_ctrl_g/s_ctrl*(): don't continue when WARN_ON
If the v4l2_ctrl_g_ctrl*() or __v4l2_ctrl_s_ctrl*() functions are called for the wrong control type then they call WARN_ON since that is a driver error. But they still continue, potentially overwriting data. Change this to return an error (s_ctrl) or 0 (g_ctrl), just to be safe. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions