diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-25 18:53:43 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-03 18:16:07 -0500 |
commit | b0f95824f2e91fb0df59fd63ddd6b36a94c05699 (patch) | |
tree | c8470a84f91a533ce220a239f0566c8a519c31e6 /arch/parisc/kernel/signal32.c | |
parent | d914b8dcbbde8e47b6762d66600ea66ccd18ef45 (diff) |
parisc: switch to generic compat rt_sigaction()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/parisc/kernel/signal32.c')
-rw-r--r-- | arch/parisc/kernel/signal32.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/parisc/kernel/signal32.c b/arch/parisc/kernel/signal32.c index 7769f9333e0c..33eca1b04926 100644 --- a/arch/parisc/kernel/signal32.c +++ b/arch/parisc/kernel/signal32.c | |||
@@ -61,34 +61,6 @@ sigset_64to32(compat_sigset_t *s32, sigset_t *s64) | |||
61 | } | 61 | } |
62 | 62 | ||
63 | long | 63 | long |
64 | sys32_rt_sigaction(int sig, const struct sigaction32 __user *act, struct sigaction32 __user *oact, | ||
65 | size_t sigsetsize) | ||
66 | { | ||
67 | struct k_sigaction32 new_sa32, old_sa32; | ||
68 | struct k_sigaction new_sa, old_sa; | ||
69 | int ret = -EINVAL; | ||
70 | |||
71 | if (act) { | ||
72 | if (copy_from_user(&new_sa32.sa, act, sizeof new_sa32.sa)) | ||
73 | return -EFAULT; | ||
74 | new_sa.sa.sa_handler = (__sighandler_t)(unsigned long)new_sa32.sa.sa_handler; | ||
75 | new_sa.sa.sa_flags = new_sa32.sa.sa_flags; | ||
76 | sigset_32to64(&new_sa.sa.sa_mask, &new_sa32.sa.sa_mask); | ||
77 | } | ||
78 | |||
79 | ret = do_sigaction(sig, act ? &new_sa : NULL, oact ? &old_sa : NULL); | ||
80 | |||
81 | if (!ret && oact) { | ||
82 | sigset_64to32(&old_sa32.sa.sa_mask, &old_sa.sa.sa_mask); | ||
83 | old_sa32.sa.sa_flags = old_sa.sa.sa_flags; | ||
84 | old_sa32.sa.sa_handler = (__sighandler_t32)(unsigned long)old_sa.sa.sa_handler; | ||
85 | if (copy_to_user(oact, &old_sa32.sa, sizeof old_sa32.sa)) | ||
86 | return -EFAULT; | ||
87 | } | ||
88 | return ret; | ||
89 | } | ||
90 | |||
91 | long | ||
92 | restore_sigcontext32(struct compat_sigcontext __user *sc, struct compat_regfile __user * rf, | 64 | restore_sigcontext32(struct compat_sigcontext __user *sc, struct compat_regfile __user * rf, |
93 | struct pt_regs *regs) | 65 | struct pt_regs *regs) |
94 | { | 66 | { |