diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2018-05-02 02:24:57 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2018-05-02 02:24:57 +0000 |
commit | 108f19d0ced75c574baf04aadc2461544271ab61 (patch) | |
tree | c74dd7b672cc03aff7b93052e639c38506a52563 /sys/kern/tty.c | |
parent | e04bdc4d8438d7c603ab1f98c7150e02c3c7e42c (diff) |
Remove proc from the parameters of vn_lock(). The parameter is
unnecessary because curproc always does the locking.
OK mpi@
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index f030029cc05..d62a91e5263 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.139 2018/04/28 15:44:59 jasper Exp $ */ +/* $OpenBSD: tty.c,v 1.140 2018/05/02 02:24:56 visa Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -795,7 +795,7 @@ ttioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p) error = namei(&nid); if (error) return (error); - vn_lock(nid.ni_vp, LK_EXCLUSIVE | LK_RETRY, p); + vn_lock(nid.ni_vp, LK_EXCLUSIVE | LK_RETRY); error = VOP_ACCESS(nid.ni_vp, VREAD, p->p_ucred, p); VOP_UNLOCK(nid.ni_vp); vrele(nid.ni_vp); |