summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-03-03 12:01:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-22 09:32:17 +0200
commit24192a36eb06c98bcad1d556a91b87c75799ac17 (patch)
tree38e594b2b82fe2f004de6cca59506967bc8573ff /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
parentb86f6179cc8ed060319ecbed0534cf4d407df406 (diff)
media: v4l2-ctrls: v4l2_ctrl_g/s_ctrl*(): don't continue when WARN_ON
[ Upstream commit 7c3bae3f430af6b4fcbdb7272e191e266fd94b45 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions