check cpu_local_var initialized

This commit is contained in:
Tomoki Shirasawa
2013-11-13 23:06:11 +09:00
parent 392357e9d2
commit 98fb5bf091
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ SYSCALL_DECLARE(rt_sigreturn)
return proc->sigrc;
}
extern struct x86_cpu_local_variables *locals;
extern struct cpu_local_var *clv;
void
check_signal(unsigned long rc, unsigned long *regs)
@ -94,7 +94,7 @@ check_signal(unsigned long rc, unsigned long *regs)
struct k_sigaction *k;
int sig;
if(locals == NULL)
if(clv == NULL)
return;
proc = cpu_local_var(current);
if(proc == NULL || proc->pid == 0)