Skip to content

Commit

Permalink
x86: signal: add __user annotation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hiroshi Shimamoto authored and Ingo Molnar committed Feb 28, 2009
1 parent ecc25fb commit 144b071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static const struct {
*/
static inline void __user *
get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size,
void **fpstate)
void __user **fpstate)
{
unsigned long sp;

Expand Down Expand Up @@ -243,7 +243,7 @@ get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size,

if (used_math()) {
sp = sp - sig_xstate_size;
*fpstate = (struct _fpstate *) sp;
*fpstate = (void __user *) sp;
if (save_i387_xstate(*fpstate) < 0)
return (void __user *)-1L;
}
Expand Down

0 comments on commit 144b071

Please sign in to comment.