summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorariff <ariff@FreeBSD.org>2007-07-05 10:22:37 +0000
committerariff <ariff@FreeBSD.org>2007-07-05 10:22:37 +0000
commit1eb68059673ddbadc76bac6a7ce5a9db6b8072c3 (patch)
tree32b064e864c6785aa5f3ab013b9a73ca57a56a5e /sys
parent6b02b0c4dab4ddb9723689badf85347b8202908e (diff)
downloadFreeBSD-src-1eb68059673ddbadc76bac6a7ce5a9db6b8072c3.zip
FreeBSD-src-1eb68059673ddbadc76bac6a7ce5a9db6b8072c3.tar.gz
Properly unlock mutex before returning. There was a slight mishap
during last major locking cleanup. Reported by: Thierry Herbelot <thierry@herbelot.com> Approved by: re (mux)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sound/pci/es137x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/es137x.c b/sys/dev/sound/pci/es137x.c
index 5c0ae16..984aac9 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)
OpenPOWER on IntegriCloud