diff options
author | ariff <ariff@FreeBSD.org> | 2007-07-05 10:22:37 +0000 |
---|---|---|
committer | ariff <ariff@FreeBSD.org> | 2007-07-05 10:22:37 +0000 |
commit | 1eb68059673ddbadc76bac6a7ce5a9db6b8072c3 (patch) | |
tree | 32b064e864c6785aa5f3ab013b9a73ca57a56a5e | |
parent | 6b02b0c4dab4ddb9723689badf85347b8202908e (diff) | |
download | FreeBSD-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)
-rw-r--r-- | sys/dev/sound/pci/es137x.c | 4 |
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) |