Skip to content

Commit

Permalink
USB: fix ehci alignment error
Browse files Browse the repository at this point in the history
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>
Cc: stable <stable@kernel.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Harro Haan authored and Greg Kroah-Hartman committed Oct 10, 2011
1 parent 74bdf22 commit 276532b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/usb/hcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 ... */
Expand Down

0 comments on commit 276532b

Please sign in to comment.