From f7155e40f62255be337a10deda4cc2bb15930fde Mon Sep 17 00:00:00 2001 From: skrll Date: Fri, 17 Sep 2004 14:11:20 +0000 Subject: 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 --- sys/compat/linux/common/linux_file64.c | 6 +++--- sys/compat/linux/common/linux_misc.c | 6 +++--- sys/compat/linux/common/linux_uselib.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'sys/compat/linux') diff --git a/sys/compat/linux/common/linux_file64.c b/sys/compat/linux/common/linux_file64.c index cdb9fc9ce06..4eebacd6e5f 100644 --- a/sys/compat/linux/common/linux_file64.c +++ b/sys/compat/linux/common/linux_file64.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_file64.c,v 1.22 2003/08/10 20:16:27 jdolecek Exp $ */ +/* $NetBSD: linux_file64.c,v 1.23 2004/09/17 14:11:24 skrll Exp $ */ /*- * Copyright (c) 1995, 1998, 2000 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.22 2003/08/10 20:16:27 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.23 2004/09/17 14:11:24 skrll Exp $"); #include #include @@ -449,7 +449,7 @@ again: auio.uio_iovcnt = 1; auio.uio_rw = UIO_READ; auio.uio_segflg = UIO_SYSSPACE; - auio.uio_procp = p; + auio.uio_procp = NULL; auio.uio_resid = buflen; auio.uio_offset = off; /* diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c index ef0207cf716..baba4949cf7 100644 --- a/sys/compat/linux/common/linux_misc.c +++ b/sys/compat/linux/common/linux_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.c,v 1.129 2004/09/13 20:09:44 jdolecek Exp $ */ +/* $NetBSD: linux_misc.c,v 1.130 2004/09/17 14:11:24 skrll Exp $ */ /*- * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc. @@ -64,7 +64,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.129 2004/09/13 20:09:44 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.130 2004/09/17 14:11:24 skrll Exp $"); #include #include @@ -808,7 +808,7 @@ again: auio.uio_iovcnt = 1; auio.uio_rw = UIO_READ; auio.uio_segflg = UIO_SYSSPACE; - auio.uio_procp = p; + auio.uio_procp = NULL; auio.uio_resid = buflen; auio.uio_offset = off; /* diff --git a/sys/compat/linux/common/linux_uselib.c b/sys/compat/linux/common/linux_uselib.c index bf61a2b50c9..8a6be4869f5 100644 --- a/sys/compat/linux/common/linux_uselib.c +++ b/sys/compat/linux/common/linux_uselib.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_uselib.c,v 1.12 2003/06/29 22:29:33 fvdl Exp $ */ +/* $NetBSD: linux_uselib.c,v 1.13 2004/09/17 14:11:24 skrll Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_uselib.c,v 1.12 2003/06/29 22:29:33 fvdl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_uselib.c,v 1.13 2004/09/17 14:11:24 skrll Exp $"); #include #include @@ -119,7 +119,7 @@ linux_sys_uselib(l, v, retval) if ((error = vn_rdwr(UIO_READ, vp, (caddr_t) &hdr, LINUX_AOUT_HDR_SIZE, 0, UIO_SYSSPACE, IO_NODELOCKED, p->p_ucred, - &rem, p))) { + &rem, NULL))) { vrele(vp); return error; } -- cgit