Source-Changes-HG archive

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

[src/isaki-audio2]: src/sys/dev/ic Add missing mutex_exit() in interrupt hand...



details:   https://anonhg.NetBSD.org/src/rev/629241fd7894
branches:  isaki-audio2
changeset: 455994:629241fd7894
user:      isaki <isaki%NetBSD.org@localhost>
date:      Thu Apr 25 13:24:11 2019 +0000

description:
Add missing mutex_exit() in interrupt handler.

diffstat:

 sys/dev/ic/tms320av110.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r bb1b5f9cc764 -r 629241fd7894 sys/dev/ic/tms320av110.c
--- a/sys/dev/ic/tms320av110.c  Thu Apr 25 13:20:11 2019 +0000
+++ b/sys/dev/ic/tms320av110.c  Thu Apr 25 13:24:11 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tms320av110.c,v 1.25.2.1 2019/04/25 13:20:11 isaki Exp $       */
+/*     $NetBSD: tms320av110.c,v 1.25.2.2 2019/04/25 13:24:11 isaki Exp $       */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tms320av110.c,v 1.25.2.1 2019/04/25 13:20:11 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tms320av110.c,v 1.25.2.2 2019/04/25 13:24:11 isaki Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -166,8 +166,10 @@
        intlist = tav_read_short(sc->sc_iot, sc->sc_ioh, TAV_INTR)
            /* & tav_read_short(sc->sc_iot, sc->sc_ioh, TAV_INTR_EN)*/;
 
-       if (!intlist)
+       if (!intlist) {
+               mutex_spin_exit(&sc->sc_intr_lock);
                return 0;
+       }
 
        /* ack now, so that we don't miss later interrupts */
        if (sc->sc_intack)



Home | Main Index | Thread Index | Old Index