]> git.dujemihanovic.xyz Git - u-boot.git/commit
f_sdp: Fix wrong usb request size
authorYe Li <ye.li@nxp.com>
Tue, 18 Aug 2020 10:16:45 +0000 (18:16 +0800)
committerMarek Vasut <marex@denx.de>
Tue, 1 Sep 2020 12:47:43 +0000 (14:47 +0200)
commit5dee7f0b0233f8b4e43e1212a6a96cdee835a8e6
tree7155ed79b7378a7cb496e37cfe363da62230b134
parentd10d429112b78c69099c57fa219230539502e543
f_sdp: Fix wrong usb request size

Because the buffer length of sdp usb request is 65, we have to allocate
65 bytes not 64 bytes. Otherwise there is potential buffer overflow.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
drivers/usb/gadget/f_sdp.c