]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: gadget: uvc: return error from uvcg_queue_init()
authorXu Yang <xu.yang_2@nxp.com>
Tue, 13 Jan 2026 09:53:09 +0000 (17:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jan 2026 15:03:18 +0000 (16:03 +0100)
commit0bce8f19bba16277257a915e4fb94e1cfe99d760
tree105be222c9e3d144f9262873bdaf64419ecdde6c
parent010dc57cb5163e5f4a32430dd5091cc29efd0471
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>
drivers/usb/gadget/function/uvc_video.c