Skip to content

Commit ad758ad

Browse files
Harro Haangregkh
authored andcommitted
USB: fix ehci alignment error
commit 276532b 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>
1 parent 0e8749e commit ad758ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/usb/hcd.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ struct usb_hcd {
178178
* this structure.
179179
*/
180180
unsigned long hcd_priv[0]
181-
__attribute__ ((aligned(sizeof(unsigned long))));
181+
__attribute__ ((aligned(sizeof(s64))));
182182
};
183183

184184
/* 2.4 does this a bit differently ... */

0 commit comments

Comments
 (0)