linux/drivers/usb/gadget
Yang Yingliang cc4b55a48f usb: gadget: uvc: fix missing mutex_unlock() if kstrtou8() fails
commit 7ebb605d22 upstream.

If kstrtou8() fails, the mutex_unlock() is missed, move kstrtou8()
before mutex_lock() to fix it up.

Fixes: 0525210c98 ("usb: gadget: uvc: Allow definition of XUs in configfs")
Fixes: b3c839bd8a ("usb: gadget: uvc: Make bSourceID read/write")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230213070926.776447-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-11 13:55:44 +01:00
..
function usb: gadget: uvc: fix missing mutex_unlock() if kstrtou8() fails 2023-03-11 13:55:44 +01:00
legacy usb: gadget: g_webcam: Send color matching descriptor per frame 2023-01-24 07:24:38 +01:00
udc USB: gadget: pxa27x_udc: fix memory leak with using debugfs_lookup() 2023-03-11 13:55:37 +01:00
composite.c
config.c
configfs.c usb: gadget: configfs: Restrict symlink creation is UDC already binded 2023-03-10 09:33:35 +01:00
configfs.h
epautoconf.c
functions.c
Kconfig
Makefile
u_f.c
u_f.h
u_os_desc.h
usbstring.c