x86: signal_64.c: arg for restore_i387_xstate() is void __user *
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Wed, 10 Sep 2008 00:21:17 +0000 (17:21 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Sep 2008 06:28:23 +0000 (08:28 +0200)
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>
arch/x86/kernel/signal_64.c

index 552a331313ff8a3fbad6f5f9bf8835fb996378df..321da93f2fb7c645d4b61806da89a072f70e2019 100644 (file)
@@ -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);
        }