aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal.c
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2009-02-27 13:27:04 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-28 03:17:29 -0500
commit144b0712dd9dd9ebd4e80c4e5388c9f6afc2b497 (patch)
tree0e245b04300cb46119be27028bdec42b03949029 /arch/x86/kernel/signal.c
parentecc25fbd6b9e07b33895c61ddf84006b00f55d99 (diff)
x86: signal: add __user annotation
Impact: cleanup Add missing __user annotation to the parameter of get_sigframe(). Also change cast type to void __user * of *fpstate. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/signal.c')
-rw-r--r--arch/x86/kernel/signal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c
index 7cdcd16885ed..e89eaf417e55 100644
--- a/arch/x86/kernel/signal.c
+++ b/arch/x86/kernel/signal.c
@@ -215,7 +215,7 @@ static const struct {
215 */ 215 */
216static inline void __user * 216static inline void __user *
217get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size, 217get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size,
218 void **fpstate) 218 void __user **fpstate)
219{ 219{
220 unsigned long sp; 220 unsigned long sp;
221 221
@@ -243,7 +243,7 @@ get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size,
243 243
244 if (used_math()) { 244 if (used_math()) {
245 sp = sp - sig_xstate_size; 245 sp = sp - sig_xstate_size;
246 *fpstate = (struct _fpstate *) sp; 246 *fpstate = (void __user *) sp;
247 if (save_i387_xstate(*fpstate) < 0) 247 if (save_i387_xstate(*fpstate) < 0)
248 return (void __user *)-1L; 248 return (void __user *)-1L;
249 } 249 }