Skip to content
Commit 5b6bc53e authored by Daniel Hellstrom's avatar Daniel Hellstrom
Browse files

USB: unaligned problem



The data structure usb_endpoint_descriptor contains an aligned field
wMaxPacketSize, however because it is declared as packed and not ending
on a 16-bit boundary an array of usb_endpoint_descriptor will be
un-aligned.

One example of this is the usb_interface struct's ep_desc field.

Signed-off-by: Daniel Hellstrom's avatarDaniel Hellstrom <daniel@gaisler.com>
parent 194c651c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment