]> git.baikalelectronics.ru Git - uboot.git/commit
usb: gadget: f_dfu: write req->actual bytes
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 10 Feb 2017 16:32:31 +0000 (19:32 +0300)
committerMarek Vasut <marex@denx.de>
Sun, 26 Feb 2017 12:24:30 +0000 (13:24 +0100)
commit4c44a143c10a053d589f7182100177bcf829dc8d
tree6e860828fe5307e20c0efd08db281f2fe53fb1de
parent714a08d5d0a645c5f4913878cbcdbdfbb725a68c
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>
drivers/usb/gadget/f_dfu.c