23c23
< * $FreeBSD: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c 277914 2015-01-30 04:51:59Z markj $
---
> * $FreeBSD: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c 277915 2015-01-30 05:03:23Z markj $
1299,1300c1299,1305
< _PHOLD(p);
< PROC_UNLOCK(p);
---
> if (p->p_flag & P_WEXIT) {
> PROC_UNLOCK(p);
> p = NULL;
> } else {
> _PHOLD(p);
> PROC_UNLOCK(p);
> }
< * $FreeBSD: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c 277914 2015-01-30 04:51:59Z markj $
---
> * $FreeBSD: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c 277915 2015-01-30 05:03:23Z markj $
1299,1300c1299,1305
< _PHOLD(p);
< PROC_UNLOCK(p);
---
> if (p->p_flag & P_WEXIT) {
> PROC_UNLOCK(p);
> p = NULL;
> } else {
> _PHOLD(p);
> PROC_UNLOCK(p);
> }