diff options
| author | Vincent Palatin <vpalatin@chromium.org> | 2013-03-06 14:08:32 +0000 | 
|---|---|---|
| committer | Marek Vasut <marex@denx.de> | 2013-03-18 18:58:54 +0100 | 
| commit | 61755c7908be54a8221280cc801e65bc9d91dfad (patch) | |
| tree | 3b0e0b294377daa42a30b74acdf35e70481f8746 | |
| parent | 8f62ca646fbad26b17f832cc3c2579080247de6e (diff) | |
| download | olio-uboot-2014.01-61755c7908be54a8221280cc801e65bc9d91dfad.tar.xz olio-uboot-2014.01-61755c7908be54a8221280cc801e65bc9d91dfad.zip | |
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>
| -rw-r--r-- | drivers/usb/host/ehci.h | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 46b535f36..d090f0a53 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;  	};  }; |