Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal
Pull sigprocmask compat fix from Al Viro: "generic compat_sys_rt_sigprocmask() had a very dumb braino; I'd spent quite a while staring at the offending commit before finally managing to spot the idiocy ;-/" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal: fix compat_sys_rt_sigprocmask()
This commit is contained in:
commit
6ec40b4230
1 changed files with 1 additions and 1 deletions
|
@ -2653,7 +2653,7 @@ COMPAT_SYSCALL_DEFINE4(rt_sigprocmask, int, how, compat_sigset_t __user *, nset,
|
||||||
if (oset) {
|
if (oset) {
|
||||||
compat_sigset_t old32;
|
compat_sigset_t old32;
|
||||||
sigset_to_compat(&old32, &old_set);
|
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 -EFAULT;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue