Module Name:    src
Committed By:   rmind
Date:           Fri Jun 24 01:03:09 UTC 2011

Modified Files:
        src/sys/uvm: uvm_amap.c

Log Message:
amap_pp_adjref: fix regression, spotted by nonaka@.


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/uvm/uvm_amap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_amap.c
diff -u src/sys/uvm/uvm_amap.c:1.96 src/sys/uvm/uvm_amap.c:1.97
--- src/sys/uvm/uvm_amap.c:1.96	Thu Jun 23 18:15:30 2011
+++ src/sys/uvm/uvm_amap.c	Fri Jun 24 01:03:08 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_amap.c,v 1.96 2011/06/23 18:15:30 rmind Exp $	*/
+/*	$NetBSD: uvm_amap.c,v 1.97 2011/06/24 01:03:08 rmind Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_amap.c,v 1.96 2011/06/23 18:15:30 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_amap.c,v 1.97 2011/06/24 01:03:08 rmind Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -1167,7 +1167,7 @@
 		}
 		prevlcv = lcv;
 	}
-	if (lcv) {
+	if (lcv == 0) {
 		/*
 		 * Ensure that the "prevref == ref" test below always
 		 * fails, since we are starting from the beginning of

Reply via email to