]> git.baikalelectronics.ru Git - kernel.git/commit
usb: host: xen-hcd: add missing unlock in error path
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 15 Dec 2021 03:58:05 +0000 (11:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Dec 2021 22:48:29 +0000 (23:48 +0100)
commit6b5ff8b1b719ac3edc8e9ad8a25ee8c652e568f0
tree4ff198e19a6f4b16577e4f7ac33c7dc9f6c1f045
parent31cb0eeaf17892a589668a3f82c60b0de3f9ef90
usb: host: xen-hcd: add missing unlock in error path

Add the missing unlock before return from function xenhcd_urb_request_done()
and xenhcd_conn_notify() in the error handling case.

Fixes: b83859d214ae ("usb: Introduce Xen pvUSB frontend (xen hcd)")
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20211215035805.375244-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xen-hcd.c