[PATCH] avoid unaligned access when accessing poll stack
authorJes Sorensen <jes@sgi.com>
Fri, 31 Mar 2006 16:18:57 +0000 (11:18 -0500)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:30:48 +0000 (12:30 -0800)
commit30c14e40ed85469f166b5effdab6705c73c5cd5e
tree31154f46c2c2acd0499b9ab8c849f009ac342641
parentd21c356b08820e60501ce7a42107a7f05863d91d
[PATCH] avoid unaligned access when accessing poll stack

Commit 70674f95c0a2ea694d5c39f4e514f538a09be36f:

  [PATCH] Optimize select/poll by putting small data sets on the stack

resulted in the poll stack being 4-byte aligned on 64-bit architectures,
causing misaligned accesses to elements in the array.

This patch fixes it by declaring the stack in terms of 'long' instead
of 'char'.

Force alignment of poll and select stacks to long to avoid unaligned
access on 64 bit architectures.

Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/select.c