Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nathanw_sa]: src/sys/kern uiomove() uses the proc pointer outside of DIA...



details:   https://anonhg.NetBSD.org/src/rev/911e92d7132e
branches:  nathanw_sa
changeset: 506079:911e92d7132e
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Thu Aug 01 03:24:47 2002 +0000

description:
uiomove() uses the proc pointer outside of DIAGNOSTIC again.

diffstat:

 sys/kern/kern_subr.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 49043277bcaa -r 911e92d7132e sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c      Thu Aug 01 03:24:04 2002 +0000
+++ b/sys/kern/kern_subr.c      Thu Aug 01 03:24:47 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_subr.c,v 1.75.2.12 2002/08/01 02:46:21 nathanw Exp $      */
+/*     $NetBSD: kern_subr.c,v 1.75.2.13 2002/08/01 03:24:47 nathanw Exp $      */
 
 /*-
  * Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.75.2.12 2002/08/01 02:46:21 nathanw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.75.2.13 2002/08/01 03:24:47 nathanw Exp $");
 
 #include "opt_ddb.h"
 #include "opt_md.h"
@@ -149,9 +149,7 @@
        u_int cnt;
        int error = 0;
        char *cp = buf;
-#ifdef DIAGNOSTIC
        struct proc *p = uio->uio_procp;
-#endif
 
 #ifdef DIAGNOSTIC
        if (uio->uio_rw != UIO_READ && uio->uio_rw != UIO_WRITE)



Home | Main Index | Thread Index | Old Index