projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d10d429
)
f_sdp: Fix wrong usb request size
author
Ye Li
<ye.li@nxp.com>
Tue, 18 Aug 2020 10:16:45 +0000
(18:16 +0800)
committer
Marek Vasut
<marex@denx.de>
Tue, 1 Sep 2020 12:47:43 +0000
(14:47 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_sdp.c
b/drivers/usb/gadget/f_sdp.c
index
f971ccd
..
eec7560
100644
(file)
--- a/
drivers/usb/gadget/f_sdp.c
+++ b/
drivers/usb/gadget/f_sdp.c
@@
-548,7
+548,7
@@
static struct usb_request *sdp_start_ep(struct usb_ep *ep)
{
struct usb_request *req;
- req = alloc_ep_req(ep, 6
4
);
+ req = alloc_ep_req(ep, 6
5
);
debug("%s: ep:%p req:%p\n", __func__, ep, req);
if (!req)