Skip to content
Snippets Groups Projects
Commit db61ec29 authored by Al Viro's avatar Al Viro
Browse files

fix compat_sys_rt_sigprocmask()


Converting bitmask to 32bit granularity is fine, but we'd better
_do_ something with the result.  Such as "copy it to userland"...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0e803baf
No related branches found
No related tags found
No related merge requests found
......@@ -2653,7 +2653,7 @@ COMPAT_SYSCALL_DEFINE4(rt_sigprocmask, int, how, compat_sigset_t __user *, nset,
if (oset) {
compat_sigset_t old32;
sigset_to_compat(&old32, &old_set);
if (copy_to_user(oset, &old_set, sizeof(sigset_t)))
if (copy_to_user(oset, &old32, sizeof(compat_sigset_t)))
return -EFAULT;
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment