aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/ptrace.c')
-rw-r--r--arch/x86/kernel/ptrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
index e19a91db9b35..96286df1bb81 100644
--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
@@ -787,6 +787,8 @@ static int ptrace_bts_status(struct task_struct *child,
787 cfg.flags |= PTRACE_BTS_O_SCHED; 787 cfg.flags |= PTRACE_BTS_O_SCHED;
788 } 788 }
789 789
790 cfg.bts_size = sizeof(struct bts_struct);
791
790 if (copy_to_user(ucfg, &cfg, sizeof(cfg))) 792 if (copy_to_user(ucfg, &cfg, sizeof(cfg)))
791 return -EFAULT; 793 return -EFAULT;
792 794