summaryrefslogtreecommitdiffstats
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2017-08-01 00:18:40 +0200
committerEric W. Biederman <ebiederm@xmission.com>2018-01-16 01:01:19 +0100
commiteb5346c379cb272eca77f63473de09103a22ebee (patch)
tree7498ca1fe0c24a8300e8bad70642bbb9de8f5342 /kernel/ptrace.c
parentsignal: Unify and correct copy_siginfo_from_user32 (diff)
downloadlinux-eb5346c379cb272eca77f63473de09103a22ebee.tar.xz
linux-eb5346c379cb272eca77f63473de09103a22ebee.zip
signal: Remove the code to clear siginfo before calling copy_siginfo_from_user32
The new unified copy_siginfo_from_user32 takes care of this. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r--kernel/ptrace.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 84b1367935e4..ec4365da9be8 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -1226,7 +1226,6 @@ int compat_ptrace_request(struct task_struct *child, compat_long_t request,
break;
case PTRACE_SETSIGINFO:
- memset(&siginfo, 0, sizeof siginfo);
if (copy_siginfo_from_user32(
&siginfo, (struct compat_siginfo __user *) datap))
ret = -EFAULT;