Module Name:    src
Committed By:   christos
Date:           Sun May 25 19:15:50 UTC 2014

Modified Files:
        src/sys/dev: cgd.c

Log Message:
create on attach needs destroy on detach.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/dev/cgd.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/cgd.c
diff -u src/sys/dev/cgd.c:1.85 src/sys/dev/cgd.c:1.86
--- src/sys/dev/cgd.c:1.85	Tue Mar 18 11:44:37 2014
+++ src/sys/dev/cgd.c	Sun May 25 15:15:50 2014
@@ -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 @@ cgd_detach(device_t self, int flags)
 		return ret;
 
 	disk_destroy(&dksc->sc_dkdev);
+	mutex_destroy(&sc->sc_lock);
 
 	return 0;
 }

Reply via email to