diff options
Diffstat (limited to 'arch/x86/kernel/ptrace.c')
-rw-r--r-- | arch/x86/kernel/ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index f352a7cc43a1..678c0ada3b3c 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c | |||
@@ -189,7 +189,7 @@ unsigned long kernel_stack_pointer(struct pt_regs *regs) | |||
189 | if (context == (sp & ~(THREAD_SIZE - 1))) | 189 | if (context == (sp & ~(THREAD_SIZE - 1))) |
190 | return sp; | 190 | return sp; |
191 | 191 | ||
192 | prev_esp = (u32 *)(context + sizeof(struct thread_info) - sizeof(long)); | 192 | prev_esp = (u32 *)(context); |
193 | if (prev_esp) | 193 | if (prev_esp) |
194 | return (unsigned long)prev_esp; | 194 | return (unsigned long)prev_esp; |
195 | 195 | ||