Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Fix off by one.



details:   https://anonhg.NetBSD.org/src/rev/4f7b833422a0
branches:  trunk
changeset: 351181:4f7b833422a0
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Feb 05 07:25:49 2017 +0000

description:
Fix off by one.
ok cherry

diffstat:

 sys/uvm/uvm_page.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1061b17c07a6 -r 4f7b833422a0 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Sun Feb 05 06:26:06 2017 +0000
+++ b/sys/uvm/uvm_page.c        Sun Feb 05 07:25:49 2017 +0000
@@ -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_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));
 



Home | Main Index | Thread Index | Old Index