Module Name:    src
Committed By:   yamt
Date:           Fri May 27 22:48:25 UTC 2011

Modified Files:
        src/sys/dev/raidframe: rf_driver.c

Log Message:
don't forget to destroy mutex.


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/sys/dev/raidframe/rf_driver.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/dev/raidframe/rf_driver.c
diff -u src/sys/dev/raidframe/rf_driver.c:1.128 src/sys/dev/raidframe/rf_driver.c:1.129
--- src/sys/dev/raidframe/rf_driver.c:1.128	Wed May 11 18:13:12 2011
+++ src/sys/dev/raidframe/rf_driver.c	Fri May 27 22:48:24 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_driver.c,v 1.128 2011/05/11 18:13:12 mrg Exp $	*/
+/*	$NetBSD: rf_driver.c,v 1.129 2011/05/27 22:48:24 yamt Exp $	*/
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -66,7 +66,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.128 2011/05/11 18:13:12 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.129 2011/05/27 22:48:24 yamt Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_raid_diagnostic.h"
@@ -179,6 +179,7 @@
 	rf_lock_mutex2(configureMutex);
 	if (--configureCount == 0) {	/* if no active configurations, shut
 					 * everything down */
+		rf_destroy_mutex2(rf_printf_mutex);
 		isconfigged = 0;
 		rf_ShutdownList(&globalShutdown);
 
@@ -278,6 +279,7 @@
 		rf_ShutdownList(&globalShutdown); \
 		configureCount--; \
 		rf_unlock_mutex2(configureMutex); \
+		rf_destroy_mutex2(rf_printf_mutex); \
 		return(rc); \
 	} \
 }

Reply via email to