Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d556625 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB: uvcvideo: Check uvc_ctrl_begin return value in VIDIOC_S_CTRL



The function return value wasn't checked due to a missing variable
assignment.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 9405e3cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -539,7 +539,7 @@ static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg)
		xctrl.id = ctrl->id;
		xctrl.value = ctrl->value;

		uvc_ctrl_begin(chain);
		ret = uvc_ctrl_begin(chain);
		if (ret < 0)
			return ret;