Skip to content

Commit

Permalink
x86: signal_64.c: arg for restore_i387_xstate() is void __user *
Browse files Browse the repository at this point in the history
restore_i387_xstate() is declared as:

  int restore_i387_xstate(void __user *buf);

so, make the variable buf void __user *.

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 Sep 10, 2008
1 parent b2994ef commit 0c40ed7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/kernel/signal_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,
}

{
struct _fpstate __user *buf;
void __user *buf;

err |= __get_user(buf, &sc->fpstate);
err |= restore_i387_xstate(buf);
}
Expand Down

0 comments on commit 0c40ed7

Please sign in to comment.