summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 0476493..06743d1 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -599,7 +599,9 @@ funsetownlst(sigiolst)
SLIST_REMOVE(&pg->pg_sigiolst, sigio, sigio, sio_pgsigio);
PGRP_UNLOCK(pg);
crfree(sigio->sio_ucred);
+ mtx_lock(&Giant);
FREE(sigio, M_SIGIO);
+ mtx_unlock(&Giant);
PGRP_LOCK(pg);
} else /* if (p != NULL) */ {
KASSERT(sigio->sio_pgid > 0, ("Pgrp sigio in proc sigio list"));
@@ -607,7 +609,9 @@ funsetownlst(sigiolst)
SLIST_REMOVE(&p->p_sigiolst, sigio, sigio, sio_pgsigio);
PROC_UNLOCK(p);
crfree(sigio->sio_ucred);
+ mtx_lock(&Giant);
FREE(sigio, M_SIGIO);
+ mtx_unlock(&Giant);
PROC_LOCK(p);
}
}
OpenPOWER on IntegriCloud