Module Name:    src
Committed By:   pooka
Date:           Tue Apr 28 14:00:42 UTC 2009

Modified Files:
        src/sys/rump/librump/rumpkern: vm.c

Log Message:
Free uao lock when destroying object.  Fixes tmpfs rename leak
reported by njoly.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/rump/librump/rumpkern/vm.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/rump/librump/rumpkern/vm.c
diff -u src/sys/rump/librump/rumpkern/vm.c:1.54 src/sys/rump/librump/rumpkern/vm.c:1.55
--- src/sys/rump/librump/rumpkern/vm.c:1.54	Fri Apr 24 13:27:03 2009
+++ src/sys/rump/librump/rumpkern/vm.c	Tue Apr 28 14:00:42 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: vm.c,v 1.54 2009/04/24 13:27:03 pooka Exp $	*/
+/*	$NetBSD: vm.c,v 1.55 2009/04/28 14:00:42 pooka Exp $	*/
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.54 2009/04/24 13:27:03 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.55 2009/04/28 14:00:42 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -239,6 +239,7 @@
 
 	mutex_enter(&uobj->vmobjlock);
 	ao_put(uobj, 0, 0, PGO_ALLPAGES | PGO_FREE);
+	mutex_destroy(&uobj->vmobjlock);
 	kmem_free(uobj, sizeof(*uobj));
 }
 

Reply via email to