Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Fix a locking botch in previous



details:   https://anonhg.NetBSD.org/src/rev/b1a3fe497cd3
branches:  trunk
changeset: 821987:b1a3fe497cd3
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Feb 24 07:52:39 2017 +0000

description:
Fix a locking botch in previous

diffstat:

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

diffs (26 lines):

diff -r 971d9b5f282e -r b1a3fe497cd3 sys/dev/audio.c
--- a/sys/dev/audio.c   Fri Feb 24 06:39:54 2017 +0000
+++ b/sys/dev/audio.c   Fri Feb 24 07:52:39 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.308 2017/02/23 23:19:04 nat Exp $  */
+/*     $NetBSD: audio.c,v 1.309 2017/02/24 07:52:39 skrll Exp $        */
 
 /*-
  * Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.308 2017/02/23 23:19:04 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.309 2017/02/24 07:52:39 skrll Exp $");
 
 #include "audio.h"
 #if NAUDIO > 0
@@ -911,6 +911,7 @@
                mutex_enter(sc->sc_intr_lock);
                cv_broadcast(&sc->sc_condvar);
                mutex_exit(sc->sc_intr_lock);
+               mutex_exit(sc->sc_lock);
                return 0;
        default:
                return EOPNOTSUPP;



Home | Main Index | Thread Index | Old Index