Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe don't forget to destroy mutex.



details:   https://anonhg.NetBSD.org/src/rev/5508d6e20a8b
branches:  trunk
changeset: 765465:5508d6e20a8b
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri May 27 22:48:24 2011 +0000

description:
don't forget to destroy mutex.

diffstat:

 sys/dev/raidframe/rf_driver.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r a79388cdd6b2 -r 5508d6e20a8b sys/dev/raidframe/rf_driver.c
--- a/sys/dev/raidframe/rf_driver.c     Fri May 27 22:42:26 2011 +0000
+++ b/sys/dev/raidframe/rf_driver.c     Fri May 27 22:48:24 2011 +0000
@@ -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); \
        } \
 }



Home | Main Index | Thread Index | Old Index