diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c index edb8767c3531..b49c0b6604a3 100644 --- a/sys/ia64/ia64/trap.c +++ b/sys/ia64/ia64/trap.c @@ -90,7 +90,7 @@ userret(register struct proc *p, struct trapframe *frame, u_quad_t oticks) postsig(sig); mtx_lock_spin(&sched_lock); - PROC_UNLOCK_NOSWITCH(); + PROC_UNLOCK_NOSWITCH(p); p->p_pri.pri_level = p->p_pri.pri_user; if (resched_wanted(p)) { /*