Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: uvcvideo: uvc_ioctl_(g|s)_ext_ctrls: handle NoP case

If nothing needs to be done. Exit early.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Yunke Cao <yunkec@google.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20250203-uvc-roi-v17-7-5900a9fed613@chromium.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>

authored by

Ricardo Ribalda and committed by
Hans Verkuil
66dcae2c 2002ce44

+6
+6
drivers/media/usb/uvc/uvc_v4l2.c
··· 1030 1030 u32 which; 1031 1031 int ret; 1032 1032 1033 + if (!ctrls->count) 1034 + return 0; 1035 + 1033 1036 switch (ctrls->which) { 1034 1037 case V4L2_CTRL_WHICH_DEF_VAL: 1035 1038 case V4L2_CTRL_WHICH_CUR_VAL: ··· 1072 1069 struct uvc_video_chain *chain = handle->chain; 1073 1070 unsigned int i; 1074 1071 int ret; 1072 + 1073 + if (!ctrls->count) 1074 + return 0; 1075 1075 1076 1076 ret = uvc_ctrl_check_access(chain, ctrls, ioctl); 1077 1077 if (ret < 0)