Browse Source

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 <vpalatin@chromium.org>

Signed-off-by: Simon Glass <sjg@chromium.org>
Vincent Palatin 12 years ago
parent
commit
61755c7908
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/usb/host/ehci.h

+ 1 - 1
drivers/usb/host/ehci.h

@@ -247,7 +247,7 @@ struct QH {
 	 * aligned to 32 bytes
 	 * aligned to 32 bytes
 	 */
 	 */
 	union {
 	union {
-		uint8_t fill[16];
+		uint32_t fill[4];
 		void *buffer;
 		void *buffer;
 	};
 	};
 };
 };