aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/kernel/signal.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c
index b6aa77035019..4d790d1f03d6 100644
--- a/arch/mips/kernel/signal.c
+++ b/arch/mips/kernel/signal.c
@@ -259,18 +259,14 @@ asmlinkage int sys_sigsuspend(nabi_no_regargs struct pt_regs regs)
259} 259}
260#endif 260#endif
261 261
262asmlinkage int sys_rt_sigsuspend(nabi_no_regargs struct pt_regs regs) 262SYSCALL_DEFINE2(rt_sigsuspend, sigset_t __user *,unewset, size_t, sigsetsize)
263{ 263{
264 sigset_t newset; 264 sigset_t newset;
265 sigset_t __user *unewset;
266 size_t sigsetsize;
267 265
268 /* XXX Don't preclude handling different sized sigset_t's. */ 266 /* XXX Don't preclude handling different sized sigset_t's. */
269 sigsetsize = regs.regs[5];
270 if (sigsetsize != sizeof(sigset_t)) 267 if (sigsetsize != sizeof(sigset_t))
271 return -EINVAL; 268 return -EINVAL;
272 269
273 unewset = (sigset_t __user *) regs.regs[4];
274 if (copy_from_user(&newset, unewset, sizeof(newset))) 270 if (copy_from_user(&newset, unewset, sizeof(newset)))
275 return -EFAULT; 271 return -EFAULT;
276 return sigsuspend(&newset); 272 return sigsuspend(&newset);