Merge "usb: dwc3: gadget: don't send extra ZLP"
This commit is contained in:
commit
2f6ffceff8
1 changed files with 2 additions and 1 deletions
|
@ -1419,7 +1419,8 @@ static int dwc3_gadget_ep_queue(struct usb_ep *ep, struct usb_request *request,
|
|||
* extra usb_request ourselves so that it gets handled the same way as
|
||||
* any other request.
|
||||
*/
|
||||
if (ret == 0 && request->zero && (request->length % ep->maxpacket == 0))
|
||||
if (ret == 0 && request->zero && request->length &&
|
||||
(request->length % ep->maxpacket == 0))
|
||||
ret = __dwc3_gadget_ep_queue_zlp(dwc, dep);
|
||||
|
||||
out:
|
||||
|
|
Loading…
Add table
Reference in a new issue