Commit 61755c79 authored by Vincent Palatin's avatar Vincent Palatin Committed by Marek Vasut
Browse files

usb: ehci: Fix aliasing issue in EHCI interrupt code



The interrupt endpoint handling code stores the buffer pointer in the QH
padding field. We need to make it the size of a pointer to avoid strict
aliasing issue with the compiler.
Signed-off-by: default avatarVincent Palatin <vpalatin@chromium.org>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 8f62ca64
......@@ -247,7 +247,7 @@ struct QH {
* aligned to 32 bytes
*/
union {
uint8_t fill[16];
uint32_t fill[4];
void *buffer;
};
};
......
Markdown is supported
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