]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 26 May 2021 13:39:14 +0000 (15:39 +0200)
commit0ce3f9ff7313d378b2822dee2cad5914de8af7c6
tree93b2689adf3a215b2e5d1396a86ac8f9eb587e6f
parent4193a5947384ba65995579f2ab551bf96c6165f1
usbip: vudc: fix missing unlock on error in usbip_sockfd_store()

BugLink: https://bugs.launchpad.net/bugs/1929615
[ Upstream commit 1d08ed588c6a85a35a24c82eb4cf0807ec2b366a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/usb/usbip/vudc_sysfs.c