aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/signal_n32.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2006-01-31 11:41:09 -0500
committerRalf Baechle <ralf@linux-mips.org>2006-02-07 08:30:25 -0500
commit9bbf28a36cae08817ac3a3f98fde329b02c89f4a (patch)
treec040508718623f0d2fb158352dd3130da4223fc7 /arch/mips/kernel/signal_n32.c
parent5be0f654a9d14c0c5aa031a3396ea8b9f2162cb9 (diff)
[MIPS] Sparse: Add some __user tags to signal functions.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/signal_n32.c')
-rw-r--r--arch/mips/kernel/signal_n32.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/kernel/signal_n32.c b/arch/mips/kernel/signal_n32.c
index ec61b2670ba6..3d2f8e39cede 100644
--- a/arch/mips/kernel/signal_n32.c
+++ b/arch/mips/kernel/signal_n32.c
@@ -83,12 +83,12 @@ save_static_function(sysn32_rt_sigreturn);
83__attribute_used__ noinline static void 83__attribute_used__ noinline static void
84_sysn32_rt_sigreturn(nabi_no_regargs struct pt_regs regs) 84_sysn32_rt_sigreturn(nabi_no_regargs struct pt_regs regs)
85{ 85{
86 struct rt_sigframe_n32 *frame; 86 struct rt_sigframe_n32 __user *frame;
87 sigset_t set; 87 sigset_t set;
88 stack_t st; 88 stack_t st;
89 s32 sp; 89 s32 sp;
90 90
91 frame = (struct rt_sigframe_n32 *) regs.regs[29]; 91 frame = (struct rt_sigframe_n32 __user *) regs.regs[29];
92 if (!access_ok(VERIFY_READ, frame, sizeof(*frame))) 92 if (!access_ok(VERIFY_READ, frame, sizeof(*frame)))
93 goto badframe; 93 goto badframe;
94 if (__copy_from_user(&set, &frame->rs_uc.uc_sigmask, sizeof(set))) 94 if (__copy_from_user(&set, &frame->rs_uc.uc_sigmask, sizeof(set)))
@@ -114,7 +114,7 @@ _sysn32_rt_sigreturn(nabi_no_regargs struct pt_regs regs)
114 114
115 /* It is more difficult to avoid calling this function than to 115 /* It is more difficult to avoid calling this function than to
116 call it and ignore errors. */ 116 call it and ignore errors. */
117 do_sigaltstack(&st, NULL, regs.regs[29]); 117 do_sigaltstack((stack_t __user *)&st, NULL, regs.regs[29]);
118 118
119 /* 119 /*
120 * Don't let your children do this ... 120 * Don't let your children do this ...
@@ -133,7 +133,7 @@ badframe:
133int setup_rt_frame_n32(struct k_sigaction * ka, 133int setup_rt_frame_n32(struct k_sigaction * ka,
134 struct pt_regs *regs, int signr, sigset_t *set, siginfo_t *info) 134 struct pt_regs *regs, int signr, sigset_t *set, siginfo_t *info)
135{ 135{
136 struct rt_sigframe_n32 *frame; 136 struct rt_sigframe_n32 __user *frame;
137 int err = 0; 137 int err = 0;
138 s32 sp; 138 s32 sp;
139 139