Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Fix PR #8023 from Bernd Ernesti: when MADV_FREE'ing ...



details:   https://anonhg.NetBSD.org/src/rev/3957519bb5de
branches:  trunk
changeset: 474768:3957519bb5de
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jul 19 17:45:23 1999 +0000

description:
Fix PR #8023 from Bernd Ernesti: when MADV_FREE'ing a region which spanned
more than one VM map entry, a typo caused amap_unadd() to attempt to
remove anons from the wrong amap.  Fix that typo.

diffstat:

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

diffs (18 lines):

diff -r ae263260c37d -r 3957519bb5de sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Mon Jul 19 17:43:59 1999 +0000
+++ b/sys/uvm/uvm_map.c Mon Jul 19 17:45:23 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.65 1999/07/18 00:41:56 thorpej Exp $     */
+/*     $NetBSD: uvm_map.c,v 1.66 1999/07/19 17:45:23 thorpej Exp $     */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -2573,7 +2573,7 @@
                                        simple_unlock(&anon->an_lock);
                                        continue;
                                }
-                               amap_unadd(&entry->aref, offset);
+                               amap_unadd(&current->aref, offset);
                                refs = --anon->an_ref;
                                simple_unlock(&anon->an_lock);
                                if (refs == 0)



Home | Main Index | Thread Index | Old Index