mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
usb: gadget: uvc: fix missing mutex_unlock() if kstrtou8() fails
commit7ebb605d22upstream. 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>
This commit is contained in:
parent
4e8f7d998b
commit
c3ccb01e0f
1 changed files with 4 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue