Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] avoid unaligned access when accessing poll stack
Commit 70674f9: [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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information