summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0e803ba)
raw | patch | inline | side by side (parent: 0e803ba)
author | Al Viro <viro@zeniv.linux.org.uk> | |
Sun, 3 Mar 2013 01:39:15 +0000 (20:39 -0500) | ||
committer | Al Viro <viro@zeniv.linux.org.uk> | |
Sun, 3 Mar 2013 01:39:15 +0000 (20:39 -0500) |
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>
_do_ something with the result. Such as "copy it to userland"...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/signal.c | patch | blob | history |
diff --git a/kernel/signal.c b/kernel/signal.c
index 2a7ae296318539952009c04585657a6d69c26f0e..8d1b785f0dc9e986a217b93cd705bc74f5607356 100644 (file)
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -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;