]> git.baikalelectronics.ru Git - kernel.git/commit
usbip: vudc: fix missing unlock on error in usbip_sockfd_store()
authorYe Bin <yebin10@huawei.com>
Thu, 8 Apr 2021 11:23:05 +0000 (19:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Apr 2021 08:29:50 +0000 (10:29 +0200)
commitf0dda4bb2b05c56575e065064f4f63ebfd2999cd
treea9e819e1f52dcc28a5efc956728f581b9b8ca9f7
parent2605157faffb609b83a034169b4fe19f97661e0b
usbip: vudc: fix missing unlock on error in usbip_sockfd_store()

Add the missing unlock before return from function usbip_sockfd_store()
in the error handling case.

Fixes: 8e93cfa17914 ("usbip: vudc synchronize sysfs code paths")
Reported-by: Hulk Robot <hulkci@huawei.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Link: https://lore.kernel.org/r/20210408112305.1022247-1-yebin10@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vudc_sysfs.c