Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Fix a fairly obvious locking error in amap_cow_now()...



details:   https://anonhg.NetBSD.org/src/rev/3d4ca99da587
branches:  trunk
changeset: 495658:3d4ca99da587
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Aug 02 19:24:29 2000 +0000

description:
Fix a fairly obvious locking error in amap_cow_now() -- the amap was
left locked upon exit from the function (how did this one slip for
so long?)

diffstat:

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

diffs (18 lines):

diff -r ed0e7e06cef2 -r 3d4ca99da587 sys/uvm/uvm_amap.c
--- a/sys/uvm/uvm_amap.c        Wed Aug 02 18:23:44 2000 +0000
+++ b/sys/uvm/uvm_amap.c        Wed Aug 02 19:24:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_amap.c,v 1.24 2000/06/27 17:29:17 mrg Exp $        */
+/*     $NetBSD: uvm_amap.c,v 1.25 2000/08/02 19:24:29 thorpej Exp $    */
 
 /*
  *
@@ -840,7 +840,7 @@
 
        }       /* end of 'for' loop */
 
-       return;
+       amap_unlock(amap);
 }
 
 /*



Home | Main Index | Thread Index | Old Index