aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/usbip/vudc_dev.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-04-10 09:19:33 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2021-04-10 09:19:33 -0700
commit445e09e79743c8ba01f1e9eb6b10faab5a92a5c7 (patch)
tree8913ed654a51dcd599a167ef3b88e8fc19054963 /drivers/usb/usbip/vudc_dev.c
parent12a0cf7241f9ee6b9b62e4c5aad53c43f46817a4 (diff)
parentbc2f3e4c662841dc19f7e7efae87782b9f3c0831 (diff)
downloadlinux-445e09e79743c8ba01f1e9eb6b10faab5a92a5c7.tar.gz
linux-445e09e79743c8ba01f1e9eb6b10faab5a92a5c7.tar.bz2
linux-445e09e79743c8ba01f1e9eb6b10faab5a92a5c7.zip
Merge tag 'usb-5.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB/Thunderbolt fixes from Greg KH: "Here are a few small USB and Thunderbolt driver fixes for 5.12-rc7 for reported issues: - thunderbolt leaks and off-by-one fix - cdnsp deque fix - usbip fixes for syzbot-reported issues All have been in linux-next with no reported problems" * tag 'usb-5.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: usbip: synchronize event handler with sysfs code paths usbip: vudc synchronize sysfs code paths usbip: stub-dev synchronize sysfs code paths usbip: add sysfs_lock to synchronize sysfs code paths thunderbolt: Fix off by one in tb_port_find_retimer() thunderbolt: Fix a leak in tb_retimer_add() usb: cdnsp: Fixes issue with dequeuing requests after disabling endpoint
Diffstat (limited to 'drivers/usb/usbip/vudc_dev.c')
-rw-r--r--drivers/usb/usbip/vudc_dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/usbip/vudc_dev.c b/drivers/usb/usbip/vudc_dev.c
index c8eeabdd9b56..2bc428f2e261 100644
--- a/drivers/usb/usbip/vudc_dev.c
+++ b/drivers/usb/usbip/vudc_dev.c
@@ -572,6 +572,7 @@ static int init_vudc_hw(struct vudc *udc)
init_waitqueue_head(&udc->tx_waitq);
spin_lock_init(&ud->lock);
+ mutex_init(&ud->sysfs_lock);
ud->status = SDEV_ST_AVAILABLE;
ud->side = USBIP_VUDC;