Skip to content
Snippets Groups Projects
Commit 58f99df4 authored by Siva Durga Prasad Paladugu's avatar Siva Durga Prasad Paladugu Committed by Marek Vasut
Browse files

usb: gadget: f_thor: Allocate request up to THOR_PACKET_SIZE


Allocate request up to THOR_PACKET_SIZE not the ep0->maxpacket
as the descriptors data depend on the number of descriptors
and this 64 bytes were not enough and the buffer might overflow
which results in memalign failures later.

Signed-off-by: default avatarSiva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 41d237de
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment