mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
- A lock is required before calling VOP_REVOKE. Our reference protects us
from accessing another vnode so a naked VOP_LOCK is sufficient. Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
9331fd135b
commit
2b3183a8b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143496
@ -320,8 +320,9 @@ exit1(struct thread *td, int rv)
|
||||
sp->s_ttyvp = NULL;
|
||||
SESS_UNLOCK(p->p_session);
|
||||
sx_xunlock(&proctree_lock);
|
||||
VOP_LOCK(ttyvp, LK_EXCLUSIVE, td);
|
||||
VOP_REVOKE(ttyvp, REVOKEALL);
|
||||
vrele(ttyvp);
|
||||
vput(ttyvp);
|
||||
sx_xlock(&proctree_lock);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user