Commit eb5346c3 authored by Eric W. Biederman's avatar Eric W. Biederman

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: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 212a36a1
...@@ -1226,7 +1226,6 @@ int compat_ptrace_request(struct task_struct *child, compat_long_t request, ...@@ -1226,7 +1226,6 @@ int compat_ptrace_request(struct task_struct *child, compat_long_t request,
break; break;
case PTRACE_SETSIGINFO: case PTRACE_SETSIGINFO:
memset(&siginfo, 0, sizeof siginfo);
if (copy_siginfo_from_user32( if (copy_siginfo_from_user32(
&siginfo, (struct compat_siginfo __user *) datap)) &siginfo, (struct compat_siginfo __user *) datap))
ret = -EFAULT; ret = -EFAULT;
......
...@@ -3155,7 +3155,7 @@ COMPAT_SYSCALL_DEFINE3(rt_sigqueueinfo, ...@@ -3155,7 +3155,7 @@ COMPAT_SYSCALL_DEFINE3(rt_sigqueueinfo,
int, sig, int, sig,
struct compat_siginfo __user *, uinfo) struct compat_siginfo __user *, uinfo)
{ {
siginfo_t info = {}; siginfo_t info;
int ret = copy_siginfo_from_user32(&info, uinfo); int ret = copy_siginfo_from_user32(&info, uinfo);
if (unlikely(ret)) if (unlikely(ret))
return ret; return ret;
...@@ -3199,7 +3199,7 @@ COMPAT_SYSCALL_DEFINE4(rt_tgsigqueueinfo, ...@@ -3199,7 +3199,7 @@ COMPAT_SYSCALL_DEFINE4(rt_tgsigqueueinfo,
int, sig, int, sig,
struct compat_siginfo __user *, uinfo) struct compat_siginfo __user *, uinfo)
{ {
siginfo_t info = {}; siginfo_t info;
if (copy_siginfo_from_user32(&info, uinfo)) if (copy_siginfo_from_user32(&info, uinfo))
return -EFAULT; return -EFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment