Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/udf destroy mutex/cv before freeing the struct holdin...
details: https://anonhg.NetBSD.org/src/rev/1a0fa647b207
branches: trunk
changeset: 760357:1a0fa647b207
user: drochner <drochner%NetBSD.org@localhost>
date: Mon Jan 03 13:12:40 2011 +0000
description:
destroy mutex/cv before freeing the struct holding them, fixes
LOCKDEBUG panic
diffstat:
sys/fs/udf/udf_strat_sequential.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 20d9f85891d3 -r 1a0fa647b207 sys/fs/udf/udf_strat_sequential.c
--- a/sys/fs/udf/udf_strat_sequential.c Mon Jan 03 12:18:25 2011 +0000
+++ b/sys/fs/udf/udf_strat_sequential.c Mon Jan 03 13:12:40 2011 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index