From: Vincent Palatin Date: Wed, 6 Mar 2013 14:08:32 +0000 (+0000) Subject: usb: ehci: Fix aliasing issue in EHCI interrupt code X-Git-Tag: v2013.04-rc2~23^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=61755c7908be54a8221280cc801e65bc9d91dfad;p=oweals%2Fu-boot.git 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: Vincent Palatin Signed-off-by: Simon Glass --- diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 46b535f36f..d090f0a53e 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h @@ -247,7 +247,7 @@ struct QH { * aligned to 32 bytes */ union { - uint8_t fill[16]; + uint32_t fill[4]; void *buffer; }; };