mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171250
@ -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 New Issue
Block a user