Merge "usb: gadget: mbim: Send zero-length packets" into msm-3.0
This commit is contained in:
committed by
QuIC Gerrit Code Review
commit
e185474f59
@@ -1048,7 +1048,7 @@ mbim_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl)
|
||||
pr_info("control request: %02x.%02x v%04x i%04x l%d\n",
|
||||
ctrl->bRequestType, ctrl->bRequest,
|
||||
w_value, w_index, w_length);
|
||||
req->zero = 0;
|
||||
req->zero = (value < w_length);
|
||||
req->length = value;
|
||||
value = usb_ep_queue(cdev->gadget->ep0, req, GFP_ATOMIC);
|
||||
if (value < 0) {
|
||||
|
||||
Reference in New Issue
Block a user