]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: gadget: f_thor: Allocate request up to THOR_PACKET_SIZE
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 15 Apr 2015 11:42:19 +0000 (13:42 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 7 Sep 2015 11:41:03 +0000 (13:41 +0200)
commit58f99df448501041a8092b281ff7adf0bd4f38ac
tree48d309e4ba82bb1a6ff8e41d7edc52d763c60465
parent41d237de6acbd5d3a8fac106dbea2d00f044c4f9
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: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/usb/gadget/f_thor.c