From 68f4e7f1d353d95cfbb7f682b22304fe08e43a8d Mon Sep 17 00:00:00 2001 From: Cameron Grant Date: Mon, 25 Nov 2002 17:07:33 +0000 Subject: [PATCH] various fixes to eliminate locking warnings Approved by: re Reviewed by: orion --- sys/dev/sound/pci/emu10k1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sound/pci/emu10k1.c b/sys/dev/sound/pci/emu10k1.c index 02f986718c0c..0448e8a7cc64 100644 --- a/sys/dev/sound/pci/emu10k1.c +++ b/sys/dev/sound/pci/emu10k1.c @@ -636,8 +636,8 @@ emupchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel snd_mtxlock(sc->lock); ch->master = emu_valloc(sc); ch->slave = emu_valloc(sc); - r = (emu_vinit(sc, ch->master, ch->slave, sc->bufsz, ch->buffer))? NULL : ch; snd_mtxunlock(sc->lock); + r = (emu_vinit(sc, ch->master, ch->slave, sc->bufsz, ch->buffer))? NULL : ch; return r; }