Source-Changes-HG archive

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

[src/trunk]: src/sys/dev create on attach needs destroy on detach.



details:   https://anonhg.NetBSD.org/src/rev/c72f5dc7b1ae
branches:  trunk
changeset: 329475:c72f5dc7b1ae
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 25 19:15:50 2014 +0000

description:
create on attach needs destroy on detach.

diffstat:

 sys/dev/cgd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 9a0481004e61 -r c72f5dc7b1ae sys/dev/cgd.c
--- a/sys/dev/cgd.c     Sun May 25 18:55:11 2014 +0000
+++ b/sys/dev/cgd.c     Sun May 25 19:15:50 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.85 2014/03/18 15:44:37 skrll Exp $ */
+/* $NetBSD: cgd.c,v 1.86 2014/05/25 19:15:50 christos Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.85 2014/03/18 15:44:37 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.86 2014/05/25 19:15:50 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -226,6 +226,7 @@
                return ret;
 
        disk_destroy(&dksc->sc_dkdev);
+       mutex_destroy(&sc->sc_lock);
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index