projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0ef513
)
USB-CDC: correct wrong alignment in ether.c
author
Stefano Babic
<sbabic@denx.de>
Sun, 15 Aug 2010 12:18:59 +0000
(14:18 +0200)
committer
Remy 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
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/ether.c
b/drivers/usb/gadget/ether.c
index c601d4a6c440ab0304b23e0a4ac00ac129e6d573..9fc6a369c31ef904232d15057abf322d9e2836e9 100644
(file)
--- a/
drivers/usb/gadget/ether.c
+++ b/
drivers/usb/gadget/ether.c
@@
-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)))
;