diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-22 17:18:10 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-21 23:59:22 -0400 |
commit | 24d696a776e27268a52cb4ff1060337f409d5789 (patch) | |
tree | c2bc96a405975229e7be979c8465a91251cc6c88 /arch/cris/arch-v32/kernel | |
parent | 43f16819d54e12c025cf8400b8572017e631d948 (diff) |
cris: missing checks of __get_user()/__put_user() return values
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/cris/arch-v32/kernel')
-rw-r--r-- | arch/cris/arch-v32/kernel/signal.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/cris/arch-v32/kernel/signal.c b/arch/cris/arch-v32/kernel/signal.c index a45efc7df748..b338d8fc0c12 100644 --- a/arch/cris/arch-v32/kernel/signal.c +++ b/arch/cris/arch-v32/kernel/signal.c | |||
@@ -79,11 +79,11 @@ sys_sigaction(int signal, const struct old_sigaction *act, | |||
79 | 79 | ||
80 | if (!access_ok(VERIFY_READ, act, sizeof(*act)) || | 80 | if (!access_ok(VERIFY_READ, act, sizeof(*act)) || |
81 | __get_user(newk.sa.sa_handler, &act->sa_handler) || | 81 | __get_user(newk.sa.sa_handler, &act->sa_handler) || |
82 | __get_user(newk.sa.sa_restorer, &act->sa_restorer)) | 82 | __get_user(newk.sa.sa_restorer, &act->sa_restorer) || |
83 | __get_user(newk.sa.sa_flags, &act->sa_flags) || | ||
84 | __get_user(mask, &act->sa_mask)) | ||
83 | return -EFAULT; | 85 | return -EFAULT; |
84 | 86 | ||
85 | __get_user(newk.sa.sa_flags, &act->sa_flags); | ||
86 | __get_user(mask, &act->sa_mask); | ||
87 | siginitset(&newk.sa.sa_mask, mask); | 87 | siginitset(&newk.sa.sa_mask, mask); |
88 | } | 88 | } |
89 | 89 | ||
@@ -92,11 +92,11 @@ sys_sigaction(int signal, const struct old_sigaction *act, | |||
92 | if (!retval && oact) { | 92 | if (!retval && oact) { |
93 | if (!access_ok(VERIFY_WRITE, oact, sizeof(*oact)) || | 93 | if (!access_ok(VERIFY_WRITE, oact, sizeof(*oact)) || |
94 | __put_user(oldk.sa.sa_handler, &oact->sa_handler) || | 94 | __put_user(oldk.sa.sa_handler, &oact->sa_handler) || |
95 | __put_user(oldk.sa.sa_restorer, &oact->sa_restorer)) | 95 | __put_user(oldk.sa.sa_restorer, &oact->sa_restorer) || |
96 | __put_user(oldk.sa.sa_flags, &oact->sa_flags) || | ||
97 | __put_user(oldk.sa.sa_mask.sig[0], &oact->sa_mask)) | ||
96 | return -EFAULT; | 98 | return -EFAULT; |
97 | 99 | ||
98 | __put_user(oldk.sa.sa_flags, &oact->sa_flags); | ||
99 | __put_user(oldk.sa.sa_mask.sig[0], &oact->sa_mask); | ||
100 | } | 100 | } |
101 | 101 | ||
102 | return retval; | 102 | return retval; |