]> err.no Git - linux-2.6/commit
[IA64-SGI] fix unaligned memory access in snsc_event.c
authorGreg Howard <ghoward@sgi.com>
Mon, 15 Aug 2005 20:00:00 +0000 (13:00 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 15 Aug 2005 21:17:49 +0000 (14:17 -0700)
commit1a402aaca51b7d56e62348f50a426c531b6bc29e
treef11678902e54db1205bad348e2a6cdb2017ccfbe
parent2ba84684e8cf6f980e4e95a2300f53a505eb794e
[IA64-SGI] fix unaligned memory access in snsc_event.c

It's been pointed out that environmental events from the system
controllers on Altix machines cause the kernel to complain about
unaligned memory accesses.  This turns out to be because
"be32_to_cpup()" didn't do everything I thought/hoped it did.
I've added calls to pull the offending integers out of the
buffers using get_unaligned() before feeding them to
be32_to_cpup().

Signed-off-by: Greg Howard <ghoward@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
drivers/char/snsc_event.c