forked from Minki/linux
ieee80211_rate: missed unlock
Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
2ef19e63e6
commit
b808ab16a9
@ -33,6 +33,7 @@ int ieee80211_rate_control_register(struct rate_control_ops *ops)
|
||||
if (!strcmp(alg->ops->name, ops->name)) {
|
||||
/* don't register an algorithm twice */
|
||||
WARN_ON(1);
|
||||
mutex_unlock(&rate_ctrl_mutex);
|
||||
return -EALREADY;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user