diff options
Diffstat (limited to 'arch/mips/kernel/signal_n32.c')
-rw-r--r-- | arch/mips/kernel/signal_n32.c | 8 |
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: | |||
133 | int setup_rt_frame_n32(struct k_sigaction * ka, | 133 | int 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 | ||