public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix ehci alignment error
@ 2011-10-10 12:38 Harro Haan
  2011-10-10 14:14 ` Greg KH
  2011-10-10 15:28 ` Alan Stern
  0 siblings, 2 replies; 8+ messages in thread
From: Harro Haan @ 2011-10-10 12:38 UTC (permalink / raw)
  To: Alan Stern, Greg Kroah-Hartman
  Cc: Lennert Buytenhek, Nicolas Pitre, linux-usb, linux-arm-kernel,
	linux-kernel, Harro Haan

[-- Attachment #1: fix-ehci-alignment-error.patch --]
[-- Type: text/plain, Size: 688 bytes --]

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>
---
 include/linux/usb/hcd.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h
index 0097136..c0ecc5a 100644
--- a/include/linux/usb/hcd.h
+++ b/include/linux/usb/hcd.h
@@ -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 ... */
-- 
1.7.0.4





^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-10-10 18:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-10 12:38 [PATCH] fix ehci alignment error Harro Haan
2011-10-10 14:14 ` Greg KH
2011-10-10 16:29   ` Måns Rullgård
2011-10-10 17:00     ` Greg KH
2011-10-10 17:31       ` Mikael Pettersson
2011-10-10 17:38         ` Greg KH
2011-10-10 18:41           ` Måns Rullgård
2011-10-10 15:28 ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox