powerpc: Fix msr check in compat_sys_swapcontext
commit77eb50aefa5dd2337246dce8b66e18e837c1a8bc
authorAndreas Schwab <schwab@suse.de>
Thu, 6 Nov 2008 00:49:00 +0000 (6 00:49 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 11 Nov 2008 08:42:22 +0000 (11 19:42 +1100)
tree76232c81ab3f3badfbd45b5793dc4637fd2ed0dd
parentec5d7657f746c46b5fbb3dbec6d0f7d8b6b82961
powerpc: Fix msr check in compat_sys_swapcontext

The new context may not be 16-byte aligned, so the real address of the
mcontext structure should be read from the uc_regs pointer instead of
directly using the (unaligned) uc_mcontext field.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/signal_32.c