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/56d11a49bb33
branches: trunk
changeset: 351736:56d11a49bb33
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 7936cdfa5f09 -r 56d11a49bb33 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