kernel: make sure process is in Queueing state in qunlock()

This commit is contained in:
cinap_lenrek 2024-01-04 04:22:04 +00:00
parent 692023ee08
commit 02015f69f6

View file

@ -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)