⬢ DragonFlyBSD Kernel Audit
DF-4095 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/sound/pci/emu10k1.c
+++ b/sys/dev/sound/pci/emu10k1.c
@@ -1198,8 +1198,10 @@
 {
 	struct sc_info *sc = (struct sc_info *)p;
 
+	snd_mtxlock(sc->lock);
 	if (sc->mpu_intr)
 	    (sc->mpu_intr)(sc->mpu);
+	snd_mtxunlock(sc->lock);
 }
 
 static void