From 0cf844696580d92cf09501d899b53f12e9e81134 Mon Sep 17 00:00:00 2001 From: ratchov Date: Wed, 20 Aug 2014 07:19:42 +0000 Subject: [PATCH] Call audio_{pint,rint}() call-backs with the mutex held. Found by Izumi Tsutsui, thanks! ok miod@ --- sys/dev/ic/arcofi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/arcofi.c b/sys/dev/ic/arcofi.c index 5c1b2324a35..88ef3b920d8 100644 --- a/sys/dev/ic/arcofi.c +++ b/sys/dev/ic/arcofi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arcofi.c,v 1.9 2014/08/19 18:02:48 miod Exp $ */ +/* $OpenBSD: arcofi.c,v 1.10 2014/08/20 07:19:42 ratchov Exp $ */ /* * Copyright (c) 2011 Miodrag Vallat. @@ -1150,7 +1150,6 @@ arcofi_swintr(void *v) action |= AUMODE_RECORD; if (sc->sc_xmit.buf != NULL && sc->sc_xmit.buf == sc->sc_xmit.past) action |= AUMODE_PLAY; - mtx_leave(&audio_lock); if (action & AUMODE_RECORD) { if (sc->sc_recv.cb) @@ -1160,6 +1159,7 @@ arcofi_swintr(void *v) if (sc->sc_xmit.cb) sc->sc_xmit.cb(sc->sc_xmit.cbarg); } + mtx_leave(&audio_lock); } int -- 2.20.1