Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/dtv add missing mutex_destroy on detach



details:   https://anonhg.NetBSD.org/src/rev/603bc67ec41a
branches:  trunk
changeset: 767265:603bc67ec41a
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jul 13 22:51:10 2011 +0000

description:
add missing mutex_destroy on detach

diffstat:

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

diffs (26 lines):

diff -r 007e83912326 -r 603bc67ec41a sys/dev/dtv/dtv_device.c
--- a/sys/dev/dtv/dtv_device.c  Wed Jul 13 22:50:24 2011 +0000
+++ b/sys/dev/dtv/dtv_device.c  Wed Jul 13 22:51:10 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dtv_device.c,v 1.5 2011/07/13 22:43:04 jmcneill Exp $ */
+/* $NetBSD: dtv_device.c,v 1.6 2011/07/13 22:51:10 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dtv_device.c,v 1.5 2011/07/13 22:43:04 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dtv_device.c,v 1.6 2011/07/13 22:51:10 jmcneill Exp $");
 
 #include <sys/types.h>
 #include <sys/conf.h>
@@ -154,6 +154,7 @@
        dtv_scatter_buf_destroy(&ds->ds_data);
 
        mutex_destroy(&sc->sc_demux_lock);
+       mutex_destroy(&sc->sc_lock);
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index