mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-22 15:42:04 +00:00
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>
This commit is contained in:
parent
d10d429112
commit
5dee7f0b02
1 changed files with 1 additions and 1 deletions
|
@ -548,7 +548,7 @@ static struct usb_request *sdp_start_ep(struct usb_ep *ep)
|
|||
{
|
||||
struct usb_request *req;
|
||||
|
||||
req = alloc_ep_req(ep, 64);
|
||||
req = alloc_ep_req(ep, 65);
|
||||
debug("%s: ep:%p req:%p\n", __func__, ep, req);
|
||||
|
||||
if (!req)
|
||||
|
|
Loading…
Reference in a new issue