Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/audio Move mutex_exit() correct place to protect sc_...
details: https://anonhg.NetBSD.org/src/rev/a8353751b8c7
branches: trunk
changeset: 968237:a8353751b8c7
user: isaki <isaki%NetBSD.org@localhost>
date: Wed Jan 08 08:10:15 2020 +0000
description:
Move mutex_exit() correct place to protect sc_async_mixer.
Thanks maxv@!
diffstat:
sys/dev/audio/audio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r c75916cdfd0e -r a8353751b8c7 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c Wed Jan 08 05:41:07 2020 +0000
+++ b/sys/dev/audio/audio.c Wed Jan 08 08:10:15 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.36 2019/12/27 09:45:26 msaitoh Exp $ */
+/* $NetBSD: audio.c,v 1.37 2020/01/08 08:10:15 isaki Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.36 2019/12/27 09:45:26 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.37 2020/01/08 08:10:15 isaki Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -7694,12 +7694,12 @@
}
mutex_enter(sc->sc_lock);
mixer_remove(sc); /* remove old entry */
- mutex_exit(sc->sc_lock);
if (ma != NULL) {
ma->next = sc->sc_async_mixer;
ma->pid = curproc->p_pid;
sc->sc_async_mixer = ma;
}
+ mutex_exit(sc->sc_lock);
error = 0;
break;
Home |
Main Index |
Thread Index |
Old Index