diff options
| -rw-r--r-- | arch/x86_64/ia32/ia32_binfmt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86_64/ia32/ia32_binfmt.c b/arch/x86_64/ia32/ia32_binfmt.c index 830feb272eca..2b760d0d9ce2 100644 --- a/arch/x86_64/ia32/ia32_binfmt.c +++ b/arch/x86_64/ia32/ia32_binfmt.c | |||
| @@ -217,8 +217,7 @@ elf_core_copy_task_fpregs(struct task_struct *tsk, struct pt_regs *regs, elf_fpr | |||
| 217 | if (!tsk_used_math(tsk)) | 217 | if (!tsk_used_math(tsk)) |
| 218 | return 0; | 218 | return 0; |
| 219 | if (!regs) | 219 | if (!regs) |
| 220 | regs = (struct pt_regs *)tsk->thread.rsp0; | 220 | regs = ((struct pt_regs *)tsk->thread.rsp0) - 1; |
| 221 | --regs; | ||
| 222 | if (tsk == current) | 221 | if (tsk == current) |
| 223 | unlazy_fpu(tsk); | 222 | unlazy_fpu(tsk); |
| 224 | set_fs(KERNEL_DS); | 223 | set_fs(KERNEL_DS); |
