set_user_ldt_rv() should check same proc not thread,

this commit fixes an user LDT smp rendezvous bug.
This commit is contained in:
David Xu 2003-04-11 14:45:07 +00:00
parent a40248455d
commit d8c586e73a
2 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ static void
set_user_ldt_rv(struct thread *td)
{
if (td != PCPU_GET(curthread))
if (td->td_proc != curthread->td_proc)
return;
mtx_lock_spin(&sched_lock);

View File

@ -282,7 +282,7 @@ static void
set_user_ldt_rv(struct thread *td)
{
if (td != PCPU_GET(curthread))
if (td->td_proc != curthread->td_proc)
return;
mtx_lock_spin(&sched_lock);