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)
commit1d08ed588c6a85a35a24c82eb4cf0807ec2b366a
treea9e819e1f52dcc28a5efc956728f581b9b8ca9f7
parent14d34d2dbbe2d9144a65bae1549202d1717062e2
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: bd8b82042269 ("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