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)
This commit is contained in:
ariff 2007-07-05 10:22:37 +00:00
parent 6b02b0c4da
commit 1eb6805967

View File

@ -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)