hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/drivers/usb/gadget/legacy/inode.c
....@@ -345,7 +345,7 @@
345345 spin_unlock_irq (&epdata->dev->lock);
346346
347347 if (likely (value == 0)) {
348
- value = wait_event_interruptible (done.wait, done.done);
348
+ value = swait_event_interruptible_exclusive(done.wait, done.done);
349349 if (value != 0) {
350350 spin_lock_irq (&epdata->dev->lock);
351351 if (likely (epdata->ep != NULL)) {
....@@ -354,7 +354,7 @@
354354 usb_ep_dequeue (epdata->ep, epdata->req);
355355 spin_unlock_irq (&epdata->dev->lock);
356356
357
- wait_event (done.wait, done.done);
357
+ swait_event_exclusive(done.wait, done.done);
358358 if (epdata->status == -ECONNRESET)
359359 epdata->status = -EINTR;
360360 } else {