Don't do a PHOLD() in kthread_create() w/o a matching PRELE() in
kthread_exit(). Rather than add the missing PRELE() I chose to just axe the PHOLD() since it was redundant with the P_SYSTEM flag. MFC after: 1 week
This commit is contained in:
parent
7a61c1a3cb
commit
54690b5679
@ -98,7 +98,6 @@ kthread_create(void (*func)(void *), void *arg,
|
||||
mtx_lock(&p2->p_sigacts->ps_mtx);
|
||||
p2->p_sigacts->ps_flag |= PS_NOCLDWAIT;
|
||||
mtx_unlock(&p2->p_sigacts->ps_mtx);
|
||||
_PHOLD(p2);
|
||||
PROC_UNLOCK(p2);
|
||||
|
||||
/* set up arg0 for 'ps', et al */
|
||||
|
Loading…
x
Reference in New Issue
Block a user