diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-02 20:39:15 -0500 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-02 20:39:15 -0500 |
| commit | db61ec29fd56e089007cb7d9a646ea9ddf518c4d (patch) | |
| tree | 77e78fc7538ea4e2beef06c10afa916898255e4c /kernel | |
| parent | 0e803bafbb7d1b8a9031104f1a982a01b45da4c6 (diff) | |
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: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 2a7ae2963185..8d1b785f0dc9 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
| @@ -2653,7 +2653,7 @@ COMPAT_SYSCALL_DEFINE4(rt_sigprocmask, int, how, compat_sigset_t __user *, nset, | |||
| 2653 | if (oset) { | 2653 | if (oset) { |
| 2654 | compat_sigset_t old32; | 2654 | compat_sigset_t old32; |
| 2655 | sigset_to_compat(&old32, &old_set); | 2655 | sigset_to_compat(&old32, &old_set); |
| 2656 | if (copy_to_user(oset, &old_set, sizeof(sigset_t))) | 2656 | if (copy_to_user(oset, &old32, sizeof(compat_sigset_t))) |
| 2657 | return -EFAULT; | 2657 | return -EFAULT; |
| 2658 | } | 2658 | } |
| 2659 | return 0; | 2659 | return 0; |
