Skip to content
Snippets Groups Projects
Commit f11bb252 authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Marek Vasut
Browse files

usb: gadget: dfu: correct size for USB_REQ_DFU_GETSTATE result


return the correct size for DFU_GETSTATE result (1 byte in DFU 1.1 spec)
to avoid issue in USB protocol and the variable "value" is propagated
to req->lenght as all the in the other request with answer
- DFU_GETSTATUS
- DFU_DNLOAD
- DFU_UPLOAD
Then the buffer is correctly treated in USB driver

NB: it was the only request witch directly change "req->actual"

Signed-off-by: default avatarPatrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: default avatarPatrick Delaunay <patrick.delaunay73@gmail.com>
parent 8987012f
No related branches found
No related tags found
No related merge requests found
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