Skip to content
Snippets Groups Projects
Commit 00e9d696 authored by Felipe Balbi's avatar Felipe Balbi Committed by Marek Vasut
Browse files

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: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent d4287766
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment