diff options
author | 2006-07-26 19:11:01 +0000 | |
---|---|---|
committer | 2006-07-26 19:11:01 +0000 | |
commit | 64a23ac23a181ce8f93f9878fff58bdca621227a (patch) | |
tree | 0693727e334a5f1070084c280801035923b4c09b | |
parent | sync (diff) | |
download | wireguard-openbsd-64a23ac23a181ce8f93f9878fff58bdca621227a.tar.xz wireguard-openbsd-64a23ac23a181ce8f93f9878fff58bdca621227a.zip |
don't call vn_rdwr() with IO_NODELOCKED when the vnode actually isn't
locked; with this diff VFSDEBUG kernels can boot again
ok pedro, thib (who came up with the same diff)
-rw-r--r-- | sys/kern/exec_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/exec_subr.c b/sys/kern/exec_subr.c index 2040b4b1249..b1c563bf5ac 100644 --- a/sys/kern/exec_subr.c +++ b/sys/kern/exec_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_subr.c,v 1.26 2004/11/23 10:14:49 hshoexer Exp $ */ +/* $OpenBSD: exec_subr.c,v 1.27 2006/07/26 19:11:01 sturm Exp $ */ /* $NetBSD: exec_subr.c,v 1.9 1994/12/04 03:10:42 mycroft Exp $ */ /* @@ -251,7 +251,7 @@ vmcmd_map_readvn(struct proc *p, struct exec_vmcmd *cmd) return (error); error = vn_rdwr(UIO_READ, cmd->ev_vp, (caddr_t)cmd->ev_addr, - cmd->ev_len, cmd->ev_offset, UIO_USERSPACE, IO_UNIT|IO_NODELOCKED, + cmd->ev_len, cmd->ev_offset, UIO_USERSPACE, IO_UNIT, p->p_ucred, NULL, p); if (error) return (error); |