]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb: ehci: Fix aliasing issue in EHCI interrupt code
authorVincent Palatin <vpalatin@chromium.org>
Wed, 6 Mar 2013 14:08:32 +0000 (14:08 +0000)
committerMarek Vasut <marex@denx.de>
Mon, 18 Mar 2013 17:58:54 +0000 (18:58 +0100)
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 <vpalatin@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/ehci.h

index 46b535f36f964e430dc8e48d48e98c93e45beafb..d090f0a53e87349ee96a5bfe7d64a917bf153d0e 100644 (file)
@@ -247,7 +247,7 @@ struct QH {
         * aligned to 32 bytes
         */
        union {
-               uint8_t fill[16];
+               uint32_t fill[4];
                void *buffer;
        };
 };