Module Name:    src
Committed By:   skrll
Date:           Fri Feb 24 07:52:39 UTC 2017

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

Log Message:
Fix a locking botch in previous


To generate a diff of this commit:
cvs rdiff -u -r1.308 -r1.309 src/sys/dev/audio.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/audio.c
diff -u src/sys/dev/audio.c:1.308 src/sys/dev/audio.c:1.309
--- src/sys/dev/audio.c:1.308	Thu Feb 23 23:19:04 2017
+++ src/sys/dev/audio.c	Fri Feb 24 07:52:39 2017
@@ -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 <nathanialsl...@yahoo.com.au>
@@ -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 @@ audioactivate(device_t self, enum devact
 		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;

Reply via email to