]> Pileus Git - ~andy/linux/commitdiff
USB: fix ehci alignment error
authorHarro Haan <hrhaan@gmail.com>
Mon, 10 Oct 2011 12:38:27 +0000 (14:38 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 10 Oct 2011 23:43:53 +0000 (16:43 -0700)
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>
include/linux/usb/hcd.h

index a4cd6c58870ae75e62d91daf9bad91da2df7ce83..03354d557b799979426b1ef0e8babab8d8b30284 100644 (file)
@@ -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 ... */