Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/genfs Correct an assertion; pointed out by mrg@ a...



details:   https://anonhg.NetBSD.org/src/rev/6d5c38772f12
branches:  trunk
changeset: 759340:6d5c38772f12
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Mon Dec 06 10:22:43 2010 +0000

description:
Correct an assertion; pointed out by mrg@ and pooka@, thanks.

diffstat:

 sys/miscfs/genfs/genfs_io.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r b3aab3ecb225 -r 6d5c38772f12 sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c       Mon Dec 06 09:28:38 2010 +0000
+++ b/sys/miscfs/genfs/genfs_io.c       Mon Dec 06 10:22:43 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfs_io.c,v 1.45 2010/12/03 08:42:14 hannken Exp $    */
+/*     $NetBSD: genfs_io.c,v 1.46 2010/12/06 10:22:43 uebayasi Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.45 2010/12/03 08:42:14 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.46 2010/12/06 10:22:43 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -240,7 +240,8 @@
                                if (pg != NULL && pg != PGO_DONTCARE) {
                                        ap->a_m[i] = NULL;
                                }
-                               KASSERT(pg == NULL || pg == PGO_DONTCARE);
+                               KASSERT(ap->a_m[i] == NULL ||
+                                   ap->a_m[i] == PGO_DONTCARE);
                        }
                } else {
                        genfs_node_unlock(vp);



Home | Main Index | Thread Index | Old Index