diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-02-09 16:43:18 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-02-09 16:43:18 +0000 |
| commit | 8ad802d82c239e7320a2bc8195caedc7d3d1e56f (patch) | |
| tree | e9b86e63538c4ec9592113c607edcb3b0a327183 | |
| parent | a9623898b812b4a27a19a1f744ecae79381e0ac7 (diff) | |
Notes
| -rw-r--r-- | sys/kern/kern_exit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 71e6288215e6..24a475388d5c 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -521,8 +521,10 @@ loop: */ PROC_LOCK(p); if (--p->p_cred->p_refcnt == 0) { + PROC_UNLOCK(p); crfree(p->p_ucred); uifree(p->p_cred->p_uidinfo); + PROC_LOCK(p); FREE(p->p_cred, M_SUBPROC); p->p_cred = NULL; } |
