MLK-20559-4 f_sdp: Fix wrong usb request size
authorYe Li <ye.li@nxp.com>
Thu, 3 Jan 2019 08:41:07 +0000 (00:41 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 10:38:53 +0000 (03:38 -0700)
commit4313297467dd130222d50d923fd47a727ba50331
tree61a12073002d44cfb9368fa6c52b8a2aaabeb5ac
parent8d82383da4f99d42f5f60cbc53a2e4378350708d
MLK-20559-4 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>
(cherry picked from commit 6ca3fc0bbdbcc6d870ceffa9d38c47d2e4edfee4)
drivers/usb/gadget/f_sdp.c