diff options
| author | skrll <skrll@NetBSD.org> | 2004-09-17 14:11:20 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2004-09-17 14:11:20 +0000 |
| commit | f7155e40f62255be337a10deda4cc2bb15930fde (patch) | |
| tree | 102c9d7980f741f0bb19cf5850ab1a918c4d1f0e /sys/kern/exec_subr.c | |
| parent | 22ce35857effb2840d84bddc604b12b9d317738a (diff) | |
There's no need to pass a proc value when using UIO_SYSSPACE with
vn_rdwr(9) and uiomove(9).
OK'd by Jason Thorpe
Diffstat (limited to 'sys/kern/exec_subr.c')
| -rw-r--r-- | sys/kern/exec_subr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/exec_subr.c b/sys/kern/exec_subr.c index 455af180ebf..41862250015 100644 --- a/sys/kern/exec_subr.c +++ b/sys/kern/exec_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_subr.c,v 1.41 2003/08/29 01:44:02 junyoung Exp $ */ +/* $NetBSD: exec_subr.c,v 1.42 2004/09/17 14:11:25 skrll Exp $ */ /* * Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: exec_subr.c,v 1.41 2003/08/29 01:44:02 junyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: exec_subr.c,v 1.42 2004/09/17 14:11:25 skrll Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -280,7 +280,7 @@ exec_read_from(struct proc *p, struct vnode *vp, u_long off, void *buf, size_t resid; if ((error = vn_rdwr(UIO_READ, vp, buf, size, off, UIO_SYSSPACE, - 0, p->p_ucred, &resid, p)) != 0) + 0, p->p_ucred, &resid, NULL)) != 0) return error; /* * See if we got all of it |
