Re: [PATCH v2 3/7] f_sdp: Fix wrong usb request size

2020-08-18 Thread Lukasz Majewski
On Tue, 18 Aug 2020 18:16:45 +0800 Peng Fan wrote: > From: Ye Li > > 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 > Signed-off-by: Peng Fan > --- > drivers/usb/gadget

[PATCH v2 3/7] f_sdp: Fix wrong usb request size

2020-08-18 Thread Peng Fan
From: Ye Li 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 Signed-off-by: Peng Fan --- drivers/usb/gadget/f_sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi