commit | e0466156ee2e944fb47a3fa00932c3698a6d2c67 | [log] [tgz] |
---|---|---|
author | Felipe F. Tonello <eu@felipetonello.com> | Mon Aug 08 21:30:06 2016 +0100 |
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | Thu Aug 25 12:13:14 2016 +0300 |
tree | f947729434d5042df8ebeb2ca86def77ec67fa9f | |
parent | 69bb99738b5c6d56d2b1a75db9cbb4d187453c1a [diff] |
usb: gadget: align buffer size when allocating for OUT endpoint Using usb_ep_align() makes sure that the buffer size for OUT endpoints is always aligned with wMaxPacketSize (512 usually). This makes sure that no buffer has the wrong size, which can cause nasty bugs. Signed-off-by: Felipe F. Tonello <eu@felipetonello.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>