mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
kernel: make sure process is in Queueing state in qunlock()
This commit is contained in:
parent
692023ee08
commit
02015f69f6
1 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,8 @@ qunlock(QLock *q)
|
|||
getcallerpc(&q));
|
||||
p = q->head;
|
||||
if(p != nil){
|
||||
if(p->state != Queueing)
|
||||
panic("qunlock");
|
||||
q->pc = p->qpc;
|
||||
q->head = p->qnext;
|
||||
if(q->head == nil)
|
||||
|
|
Loading…
Reference in a new issue