USB-CDC: correct wrong alignment in ether.c
authorStefano Babic <sbabic@denx.de>
Sun, 15 Aug 2010 12:18:59 +0000 (14:18 +0200)
committerRemy Bohmer <linux@bohmer.net>
Mon, 20 Sep 2010 19:57:17 +0000 (21:57 +0200)
The buffer for the status request must be word aligned
because it is accessed with 32 bit pointer in the
eth_status_complete function.

Signed-off-by: Stefano Babic <sbabic@denx.de>
drivers/usb/gadget/ether.c

index c601d4a6c440ab0304b23e0a4ac00ac129e6d573..9fc6a369c31ef904232d15057abf322d9e2836e9 100644 (file)
@@ -677,7 +677,7 @@ static struct usb_gadget_strings    stringtab = {
 
 /*============================================================================*/
 static u8 control_req[USB_BUFSIZ];
-static u8 status_req[STATUS_BYTECOUNT];
+static u8 status_req[STATUS_BYTECOUNT] __attribute__ ((aligned(4)));