Skip to content
Commit 77eb50ae authored by Andreas Schwab's avatar Andreas Schwab Committed by Paul Mackerras
Browse files

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: default avatarAndreas Schwab <schwab@suse.de>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent ec5d7657
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment