commit | c729786a2900f885b4cd01eb2b55ae03c0cd19c5 | [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 | e652af886d1166ef2307357ad38cc4744501c6ac [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>