Merge "usb: gadget: f_cdev: Send zero length packets in modem data calls"

This commit is contained in:
Linux Build Service Account 2018-06-16 18:57:53 -07:00 committed by Gerrit - the friendly Code Review server
commit d225d1aed1

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2013-2017, The Linux Foundation. All rights reserved. * Copyright (c) 2011, 2013-2018, The Linux Foundation. All rights reserved.
* Linux Foundation chooses to take subject only to the GPLv2 license terms, * Linux Foundation chooses to take subject only to the GPLv2 license terms,
* and distributes only under these terms. * and distributes only under these terms.
* *
@ -1251,6 +1251,7 @@ ssize_t f_cdev_write(struct file *file,
ret = -EFAULT; ret = -EFAULT;
} else { } else {
req->length = xfer_size; req->length = xfer_size;
req->zero = 1;
ret = usb_ep_queue(in, req, GFP_KERNEL); ret = usb_ep_queue(in, req, GFP_KERNEL);
if (ret) { if (ret) {
pr_err("EP QUEUE failed:%d\n", ret); pr_err("EP QUEUE failed:%d\n", ret);