aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/signal.c')
-rw-r--r--arch/arm/kernel/signal.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c
index d68d1b694680..d554025dbcbc 100644
--- a/arch/arm/kernel/signal.c
+++ b/arch/arm/kernel/signal.c
@@ -91,10 +91,10 @@ sys_sigaction(int sig, const struct old_sigaction __user *act,
91 old_sigset_t mask; 91 old_sigset_t mask;
92 if (!access_ok(VERIFY_READ, act, sizeof(*act)) || 92 if (!access_ok(VERIFY_READ, act, sizeof(*act)) ||
93 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || 93 __get_user(new_ka.sa.sa_handler, &act->sa_handler) ||
94 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer)) 94 __get_user(new_ka.sa.sa_restorer, &act->sa_restorer) ||
95 __get_user(new_ka.sa.sa_flags, &act->sa_flags) ||
96 __get_user(mask, &act->sa_mask))
95 return -EFAULT; 97 return -EFAULT;
96 __get_user(new_ka.sa.sa_flags, &act->sa_flags);
97 __get_user(mask, &act->sa_mask);
98 siginitset(&new_ka.sa.sa_mask, mask); 98 siginitset(&new_ka.sa.sa_mask, mask);
99 } 99 }
100 100
@@ -103,10 +103,10 @@ sys_sigaction(int sig, const struct old_sigaction __user *act,
103 if (!ret && oact) { 103 if (!ret && oact) {
104 if (!access_ok(VERIFY_WRITE, oact, sizeof(*oact)) || 104 if (!access_ok(VERIFY_WRITE, oact, sizeof(*oact)) ||
105 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || 105 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) ||
106 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer)) 106 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer) ||
107 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) ||
108 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask))
107 return -EFAULT; 109 return -EFAULT;
108 __put_user(old_ka.sa.sa_flags, &oact->sa_flags);
109 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask);
110 } 110 }
111 111
112 return ret; 112 return ret;