Skip to content

Commit f88ae5c

Browse files
committed
media: uvcvideo: Annotate lock requirements for uvc_ctrl_set
jira LE-3622 Rebuild_History Non-Buildable kernel-6.12.0-55.22.1.el10_0 commit-author Ricardo Ribalda <ribalda@chromium.org> commit 02baaa0 Make it explicit that the function is always called with ctrl_mutex being held. Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Link: https://lore.kernel.org/r/20241203-uvc-fix-async-v6-4-26c867231118@chromium.org Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> (cherry picked from commit 02baaa0) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 876b195 commit f88ae5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/media/usb/uvc/uvc_ctrl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,6 +1981,8 @@ int uvc_ctrl_set(struct uvc_fh *handle,
19811981
s32 max;
19821982
int ret;
19831983

1984+
lockdep_assert_held(&chain->ctrl_mutex);
1985+
19841986
if (__uvc_query_v4l2_class(chain, xctrl->id, 0) >= 0)
19851987
return -EACCES;
19861988

0 commit comments

Comments
 (0)