diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-09-02 19:57:33 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-09-02 23:51:17 +0200 |
commit | 6f46b3aef0031c08a7b439d63013dad2aeb093b2 (patch) | |
tree | 939cceda0d84c419d3ee35f6c2625734a4218be2 /arch/x86/kernel/process_64.c | |
parent | x86, fpu: Shift "fpu_counter = 0" from copy_thread() to arch_dup_task_struct() (diff) | |
download | linux-6f46b3aef0031c08a7b439d63013dad2aeb093b2.tar.xz linux-6f46b3aef0031c08a7b439d63013dad2aeb093b2.zip |
x86: copy_thread: Don't nullify ->ptrace_bps twice
Both 32bit and 64bit versions of copy_thread() do memset(ptrace_bps)
twice for no reason, kill the 2nd memset().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Link: http://lkml.kernel.org/r/20140902175733.GA21676@redhat.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/process_64.c')
-rw-r--r-- | arch/x86/kernel/process_64.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index 593257def776..3ed4a68d4013 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -192,8 +192,6 @@ int copy_thread(unsigned long clone_flags, unsigned long sp, childregs->sp = sp; err = -ENOMEM; - memset(p->thread.ptrace_bps, 0, sizeof(p->thread.ptrace_bps)); - if (unlikely(test_tsk_thread_flag(me, TIF_IO_BITMAP))) { p->thread.io_bitmap_ptr = kmemdup(me->thread.io_bitmap_ptr, IO_BITMAP_BYTES, GFP_KERNEL); |