mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 00:36:40 +09:00
USB: fix ehci alignment error
commit 276532ba96 upstream.
The Kirkwood gave an unaligned memory access error on
line 742 of drivers/usb/host/echi-hcd.c:
"ehci->last_periodic_enable = ktime_get_real();"
Signed-off-by: Harro Haan <hrhaan@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0e8749ebf6
commit
ad758ade42
@@ -178,7 +178,7 @@ struct usb_hcd {
|
||||
* this structure.
|
||||
*/
|
||||
unsigned long hcd_priv[0]
|
||||
__attribute__ ((aligned(sizeof(unsigned long))));
|
||||
__attribute__ ((aligned(sizeof(s64))));
|
||||
};
|
||||
|
||||
/* 2.4 does this a bit differently ... */
|
||||
|
||||
Reference in New Issue
Block a user