diff options
Diffstat (limited to 'arch/mips/kernel/signal_n32.c')
-rw-r--r-- | arch/mips/kernel/signal_n32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/kernel/signal_n32.c b/arch/mips/kernel/signal_n32.c index 3e168c08a3a8..477c5334ec1b 100644 --- a/arch/mips/kernel/signal_n32.c +++ b/arch/mips/kernel/signal_n32.c | |||
@@ -87,7 +87,8 @@ save_static_function(sysn32_rt_sigsuspend); | |||
87 | __attribute_used__ noinline static int | 87 | __attribute_used__ noinline static int |
88 | _sysn32_rt_sigsuspend(nabi_no_regargs struct pt_regs regs) | 88 | _sysn32_rt_sigsuspend(nabi_no_regargs struct pt_regs regs) |
89 | { | 89 | { |
90 | compat_sigset_t __user *unewset, uset; | 90 | compat_sigset_t __user *unewset; |
91 | compat_sigset_t uset; | ||
91 | size_t sigsetsize; | 92 | size_t sigsetsize; |
92 | sigset_t newset; | 93 | sigset_t newset; |
93 | 94 | ||
@@ -141,7 +142,7 @@ _sysn32_rt_sigreturn(nabi_no_regargs struct pt_regs regs) | |||
141 | /* The ucontext contains a stack32_t, so we must convert! */ | 142 | /* The ucontext contains a stack32_t, so we must convert! */ |
142 | if (__get_user(sp, &frame->rs_uc.uc_stack.ss_sp)) | 143 | if (__get_user(sp, &frame->rs_uc.uc_stack.ss_sp)) |
143 | goto badframe; | 144 | goto badframe; |
144 | st.ss_sp = (void *)(long) sp; | 145 | st.ss_sp = (void __user *)(long) sp; |
145 | if (__get_user(st.ss_size, &frame->rs_uc.uc_stack.ss_size)) | 146 | if (__get_user(st.ss_size, &frame->rs_uc.uc_stack.ss_size)) |
146 | goto badframe; | 147 | goto badframe; |
147 | if (__get_user(st.ss_flags, &frame->rs_uc.uc_stack.ss_flags)) | 148 | if (__get_user(st.ss_flags, &frame->rs_uc.uc_stack.ss_flags)) |