Module Name:    src
Committed By:   drochner
Date:           Mon Jan  3 13:12:40 UTC 2011

Modified Files:
        src/sys/fs/udf: udf_strat_sequential.c

Log Message:
destroy mutex/cv before freeing the struct holding them, fixes
LOCKDEBUG panic


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/fs/udf/udf_strat_sequential.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/fs/udf/udf_strat_sequential.c
diff -u src/sys/fs/udf/udf_strat_sequential.c:1.10 src/sys/fs/udf/udf_strat_sequential.c:1.11
--- src/sys/fs/udf/udf_strat_sequential.c:1.10	Wed May 20 15:30:26 2009
+++ src/sys/fs/udf/udf_strat_sequential.c	Mon Jan  3 13:12:40 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_strat_sequential.c,v 1.10 2009/05/20 15:30:26 reinoud Exp $ */
+/* $NetBSD: udf_strat_sequential.c,v 1.11 2011/01/03 13:12:40 drochner Exp $ */
 
 /*
  * Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_strat_sequential.c,v 1.10 2009/05/20 15:30:26 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_strat_sequential.c,v 1.11 2011/01/03 13:12:40 drochner Exp $");
 #endif /* not lint */
 
 
@@ -671,6 +671,9 @@
 	/* destroy our pool */
 	pool_destroy(&priv->desc_pool);
 
+	mutex_destroy(&priv->discstrat_mutex);
+	cv_destroy(&priv->discstrat_cv);
+
 	/* free our private space */
 	free(ump->strategy_private, M_UDFTEMP);
 	ump->strategy_private = NULL;

Reply via email to