diff options
| author | 2018-04-28 03:13:04 +0000 | |
|---|---|---|
| committer | 2018-04-28 03:13:04 +0000 | |
| commit | 36bb23f12acb06197346657619c449dc8e0cae8e (patch) | |
| tree | c24cd9be1c65672fca95ccca71d5542d91c3c25f /sys/kern/exec_script.c | |
| parent | rasops: implement scrollback (diff) | |
| download | wireguard-openbsd-36bb23f12acb06197346657619c449dc8e0cae8e.tar.xz wireguard-openbsd-36bb23f12acb06197346657619c449dc8e0cae8e.zip | |
Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is always
curproc that does the locking or unlocking, so the proc parameter
is pointless and can be dropped.
OK mpi@, deraadt@
Diffstat (limited to 'sys/kern/exec_script.c')
| -rw-r--r-- | sys/kern/exec_script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c index 2e51357dbe6..4a659c80867 100644 --- a/sys/kern/exec_script.c +++ b/sys/kern/exec_script.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_script.c,v 1.42 2018/01/02 06:38:45 guenther Exp $ */ +/* $OpenBSD: exec_script.c,v 1.43 2018/04/28 03:13:04 visa Exp $ */ /* $NetBSD: exec_script.c,v 1.13 1996/02/04 02:15:06 christos Exp $ */ /* @@ -160,7 +160,7 @@ check_shell: */ vn_lock(scriptvp, LK_EXCLUSIVE|LK_RETRY, p); error = VOP_ACCESS(scriptvp, VREAD, p->p_ucred, p); - VOP_UNLOCK(scriptvp, p); + VOP_UNLOCK(scriptvp); if (error == EACCES || script_sbits) { struct file *fp; |
