提交 61755c79 编写于 作者: V Vincent Palatin 提交者: Marek Vasut

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: NVincent Palatin <vpalatin@chromium.org>
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册