Module Name: src
Committed By: isaki
Date: Thu Apr 25 13:24:11 UTC 2019
Modified Files:
src/sys/dev/ic [isaki-audio2]: tms320av110.c
Log Message:
Add missing mutex_exit() in interrupt handler.
To generate a diff of this commit:
cvs rdiff -u -r1.25.2.1 -r1.25.2.2 src/sys/dev/ic/tms320av110.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/ic/tms320av110.c
diff -u src/sys/dev/ic/tms320av110.c:1.25.2.1 src/sys/dev/ic/tms320av110.c:1.25.2.2
--- src/sys/dev/ic/tms320av110.c:1.25.2.1 Thu Apr 25 13:20:11 2019
+++ src/sys/dev/ic/tms320av110.c Thu Apr 25 13:24:11 2019
@@ -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 @@ tms320av110_intr(void *p)
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)