Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm initialize aref.ar_pageoff even if there's no amap.



details:   https://anonhg.NetBSD.org/src/rev/8ce2f253e2ca
branches:  trunk
changeset: 487814:8ce2f253e2ca
user:      chs <chs%NetBSD.org@localhost>
date:      Tue Jun 13 04:10:47 2000 +0000

description:
initialize aref.ar_pageoff even if there's no amap.

diffstat:

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

diffs (17 lines):

diff -r c57c0b548de1 -r 8ce2f253e2ca sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Tue Jun 13 03:12:44 2000 +0000
+++ b/sys/uvm/uvm_map.c Tue Jun 13 04:10:47 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.76 2000/06/05 07:28:56 pk Exp $  */
+/*     $NetBSD: uvm_map.c,v 1.77 2000/06/13 04:10:47 chs Exp $ */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -670,6 +670,7 @@
                new_entry->aref.ar_pageoff = 0;
                new_entry->aref.ar_amap = amap;
        } else {
+               new_entry->aref.ar_pageoff = 0;
                new_entry->aref.ar_amap = NULL;
        }
 



Home | Main Index | Thread Index | Old Index