Module Name:    src
Committed By:   maya
Date:           Sun Feb  5 07:25:49 UTC 2017

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

Log Message:
Fix off by one.
ok cherry


To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.192 src/sys/uvm/uvm_page.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_page.c
diff -u src/sys/uvm/uvm_page.c:1.191 src/sys/uvm/uvm_page.c:1.192
--- src/sys/uvm/uvm_page.c:1.191	Fri Dec 23 09:36:55 2016
+++ src/sys/uvm/uvm_page.c	Sun Feb  5 07:25:49 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_page.c,v 1.191 2016/12/23 09:36:55 skrll Exp $	*/
+/*	$NetBSD: uvm_page.c,v 1.192 2017/02/05 07:25:49 maya Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.191 2016/12/23 09:36:55 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.192 2017/02/05 07:25:49 maya Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvm.h"
@@ -1867,7 +1867,7 @@ uvm_page_printall(void (*pr)(const char 
 	     uvm_physseg_valid_p(i);
 	     i = uvm_physseg_get_next(i)) {
 		for (pfn = uvm_physseg_get_start(i);
-		     pfn <= uvm_physseg_get_end(i);
+		     pfn < uvm_physseg_get_end(i);
 		     pfn++) {
 			pg = PHYS_TO_VM_PAGE(ptoa(pfn));
 

Reply via email to