From: Jack Morgenstein Date: Mon, 29 May 2006 16:14:05 +0000 (+0300) Subject: IPoIB: Fix kernel unaligned access on ia64 X-Git-Tag: v2.6.18-rc1~1110^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37c22a77212c13201497378cc8becc5c95d0f3f5;p=pandora-kernel.git IPoIB: Fix kernel unaligned access on ia64 Fix misaligned access faults on ia64: never cast a misaligned neighbour->ha + 4 pointer to union ib_gid type; pass a void * pointer instead. The memcpy was being optimized to use full word accesses because the compiler thought that union ib_gid is always aligned. The cast in IPOIB_GID_ARG is safe, since it is fixed to access each byte separately. Signed-off-by: Jack Morgenstein Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed