From 36bc8661bf0259fddd87709863b3d94f26fef3a1 Mon Sep 17 00:00:00 2001 From: Ariff Abdullah Date: Thu, 5 Jul 2007 10:22:37 +0000 Subject: [PATCH] Properly unlock mutex before returning. There was a slight mishap during last major locking cleanup. Reported by: Thierry Herbelot Approved by: re (mux) --- sys/dev/sound/pci/es137x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/sound/pci/es137x.c b/sys/dev/sound/pci/es137x.c index 5c0ae1625a89..984aac9e4ee3 100644 --- a/sys/dev/sound/pci/es137x.c +++ b/sys/dev/sound/pci/es137x.c @@ -543,8 +543,10 @@ eschan1370_setspeed(kobj_t obj, void *data, uint32_t speed) ES_LOCK(es); /* Fixed rate , do nothing. */ - if (ch->caps.minspeed == ch->caps.maxspeed) + if (ch->caps.minspeed == ch->caps.maxspeed) { + ES_UNLOCK(es); return (ch->caps.maxspeed); + } if (speed < ch->caps.minspeed) speed = ch->caps.minspeed; if (speed > ch->caps.maxspeed)