]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitbda05366bee91b7e59ccb7aa1507494b769e1c35
tree31154f46c2c2acd0499b9ab8c849f009ac342641
parentfb22918c0491a727495dd3f3c0c290775f116880
[PATCH] avoid unaligned access when accessing poll stack

Commit 5f8a2ad8c3d5dbff39b28341fed25b9c9840352f:

  [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