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:
committed by
John W. Linville
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)) {
|
if (!strcmp(alg->ops->name, ops->name)) {
|
||||||
/* don't register an algorithm twice */
|
/* don't register an algorithm twice */
|
||||||
WARN_ON(1);
|
WARN_ON(1);
|
||||||
|
mutex_unlock(&rate_ctrl_mutex);
|
||||||
return -EALREADY;
|
return -EALREADY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user