ieee80211_rate: missed unlock

Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
Cyrill Gorcunov 2007-12-13 15:52:11 -08:00 • committed by John W. Linville
commit b808ab16a9

View file

@ -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;
}
}