Module Name:    src
Committed By:   bouyer
Date:           Sat Aug  1 09:08:53 UTC 2009

Modified Files:
        src/sys/ufs/ufs: ufs_quota.c

Log Message:
Add missing mutex_destroy() before pool_cache_put(). Prevents a
"Mutex error: lockdebug_alloc: already initialized" panic.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/ufs/ufs/ufs_quota.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/ufs/ufs/ufs_quota.c
diff -u src/sys/ufs/ufs/ufs_quota.c:1.62 src/sys/ufs/ufs/ufs_quota.c:1.63
--- src/sys/ufs/ufs/ufs_quota.c:1.62	Thu May  7 19:26:09 2009
+++ src/sys/ufs/ufs/ufs_quota.c	Sat Aug  1 09:08:53 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: ufs_quota.c,v 1.62 2009/05/07 19:26:09 elad Exp $	*/
+/*	$NetBSD: ufs_quota.c,v 1.63 2009/08/01 09:08:53 bouyer Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993, 1995
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.62 2009/05/07 19:26:09 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.63 2009/08/01 09:08:53 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -889,6 +889,7 @@
 		KASSERT(dq->dq_cnt > 0);
 		dqref(dq);
 		mutex_exit(&dqlock);
+		mutex_destroy(&dq->dq_interlock);
 		pool_cache_put(dquot_cache, ndq);
 		*dqp = dq;
 		return 0;

Reply via email to