commit | 00e9d69629eb026a2ccc9e2526e365b1e796a14d | [log] [tgz] |
---|---|---|
author | Felipe Balbi <felipe.balbi@linux.intel.com> | Fri Feb 10 19:32:31 2017 +0300 |
committer | Marek Vasut <marex@denx.de> | Sun Feb 26 13:24:30 2017 +0100 |
tree | 6e860828fe5307e20c0efd08db281f2fe53fb1de | |
parent | d428776657154f57b89913ffb0c5a23cb5b595f7 [diff] |
usb: gadget: f_dfu: write req->actual bytes If last packet is short, we shouldn't write req->length bytes to non-volatile media, we should write only what's available to us, which is held in req->actual. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>