Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/dev/audio Pull up following revision(s) (requested by...



details:   https://anonhg.NetBSD.org/src/rev/6e957ce63560
branches:  netbsd-9
changeset: 843761:6e957ce63560
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jan 21 11:17:58 2020 +0000

description:
Pull up following revision(s) (requested by isaki in ticket #619):

        sys/dev/audio/audio.c: revision 1.37

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 5058cfe47c76 -r 6e957ce63560 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Tue Jan 21 11:15:52 2020 +0000
+++ b/sys/dev/audio/audio.c     Tue Jan 21 11:17:58 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.28.2.5 2020/01/02 09:18:15 martin Exp $    */
+/*     $NetBSD: audio.c,v 1.28.2.6 2020/01/21 11:17:58 martin Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.28.2.5 2020/01/02 09:18:15 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.28.2.6 2020/01/21 11:17:58 martin 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