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:
parent
6b02b0c4da
commit
1eb6805967
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user