Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/kernfs Don't pass &proc0 in the UIO_SYSSPACE case...
details: https://anonhg.NetBSD.org/src/rev/cf425dd3f237
branches: trunk
changeset: 570756:cf425dd3f237
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Oct 27 06:51:06 2004 +0000
description:
Don't pass &proc0 in the UIO_SYSSPACE case it is not needed.
diffstat:
sys/miscfs/kernfs/kernfs_vnops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 798ed30b668a -r cf425dd3f237 sys/miscfs/kernfs/kernfs_vnops.c
--- a/sys/miscfs/kernfs/kernfs_vnops.c Wed Oct 27 00:56:17 2004 +0000
+++ b/sys/miscfs/kernfs/kernfs_vnops.c Wed Oct 27 06:51:06 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs_vnops.c,v 1.104 2004/05/13 15:44:04 cl Exp $ */
+/* $NetBSD: kernfs_vnops.c,v 1.105 2004/10/27 06:51:06 skrll Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.104 2004/05/13 15:44:04 cl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.105 2004/10/27 06:51:06 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_ipsec.h"
@@ -1043,7 +1043,7 @@
struct vattr va;
if ((error = VOP_GETATTR(vp, &va, ap->a_cred,
ap->a_uio->uio_segflg == UIO_USERSPACE ?
- ap->a_uio->uio_procp : &proc0)) != 0)
+ ap->a_uio->uio_procp : NULL)) != 0)
return (error);
d->d_fileno = va.va_fileid;
} else {
Home |
Main Index |
Thread Index |
Old Index