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.

usb: gadget: uvc: return error from uvcg_queue_init()

uvcg_queue_init() may fail, but its return value is currently ignored.
Propagate the error code from uvcg_queue_init() to correctly report
initialization failures.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://patch.msgid.link/20260113-uvc-gadget-fix-patch-v2-3-62950ef5bcb5@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Xu Yang and committed by
Greg Kroah-Hartman
0bce8f19 010dc57c

+1 -2
+1 -2
drivers/usb/gadget/function/uvc_video.c
··· 838 838 video->interval = 666666; 839 839 840 840 /* Initialize the video buffers queue. */ 841 - uvcg_queue_init(&video->queue, uvc->v4l2_dev.dev->parent, 841 + return uvcg_queue_init(&video->queue, uvc->v4l2_dev.dev->parent, 842 842 V4L2_BUF_TYPE_VIDEO_OUTPUT, &video->mutex); 843 - return 0; 844 843 }