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

Commit 26154bd9 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "DWC3: gadget: Report error if RX buffer not aligned to EP's MTU" into msm-4.9

parents 4030d59a 3df6a32d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1350,6 +1350,10 @@ static int dwc3_gadget_ep_queue(struct usb_ep *ep, struct usb_request *request,
		goto out;
	}

	WARN(!dep->direction && (request->length % ep->desc->wMaxPacketSize),
		"trying to queue unaligned request (%d) with %s\n",
		request->length, ep->name);

	ret = __dwc3_gadget_ep_queue(dep, req);

	/*