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

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

Merge "USB: ci13xxx_udc: Fail request queuing for BAM endpoints in FS mode"

parents cc9fa2c2 95afc394
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3203,6 +3203,12 @@ static int ep_queue(struct usb_ep *ep, struct usb_request *req,
		}
	}

	if (ep->endless && udc->gadget.speed == USB_SPEED_FULL) {
		err("Queueing endless req is not supported for FS");
		retval = -EINVAL;
		goto done;
	}

	/* first nuke then test link, e.g. previous status has not sent */
	if (!list_empty(&mReq->queue)) {
		retval = -EBUSY;