mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
c425727e97
commit
36bc8661bf
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue