VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / arch / sparc / kernel / signal.c
index 68847c1..28edf93 100644 (file)
@@ -198,7 +198,7 @@ restore_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu)
                regs->psr &= ~PSR_EF;
 #else
        if (current == last_task_used_math) {
-               last_task_used_math = 0;
+               last_task_used_math = NULL;
                regs->psr &= ~PSR_EF;
        }
 #endif
@@ -439,7 +439,7 @@ setup_frame(struct sigaction *sa, struct pt_regs *regs, int signr, sigset_t *old
        unsigned long pc = regs->pc;
        unsigned long npc = regs->npc;
        struct thread_info *tp = current_thread_info();
-       void *sig_address;
+       void __user *sig_address;
        int sig_code;
 
        synchronize_user_stack();
@@ -570,7 +570,7 @@ save_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu)
                put_psr(get_psr() | PSR_EF);
                fpsave(&current->thread.float_regs[0], &current->thread.fsr,
                       &current->thread.fpqueue[0], &current->thread.fpqdepth);
-               last_task_used_math = 0;
+               last_task_used_math = NULL;
                regs->psr &= ~(PSR_EF);
        }
 #endif