Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit daaf0eeb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: f_fs: Queue request after setting is_busy flag"

parents bff3c3db 1c738b6a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -988,13 +988,14 @@ retry:
			 * still busy.
			 */
			if (!(io_data->read && ep->is_busy)) {
				ret = usb_ep_queue(ep->ep, req, GFP_ATOMIC);
				ep->is_busy = true;
				ret = usb_ep_queue(ep->ep, req, GFP_ATOMIC);
			}

			spin_unlock_irq(&epfile->ffs->eps_lock);

			if (unlikely(ret < 0)) {
				ep->is_busy = false;
				ret = -EIO;
			} else if (unlikely(
				   wait_for_completion_interruptible(done))) {