aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_rate.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ieee80211_rate.c')
-rw-r--r--net/mac80211/ieee80211_rate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_rate.c b/net/mac80211/ieee80211_rate.c
index 7254bd609839..3260a4a0ecc5 100644
--- a/net/mac80211/ieee80211_rate.c
+++ b/net/mac80211/ieee80211_rate.c
@@ -33,6 +33,7 @@ int ieee80211_rate_control_register(struct rate_control_ops *ops)
33 if (!strcmp(alg->ops->name, ops->name)) { 33 if (!strcmp(alg->ops->name, ops->name)) {
34 /* don't register an algorithm twice */ 34 /* don't register an algorithm twice */
35 WARN_ON(1); 35 WARN_ON(1);
36 mutex_unlock(&rate_ctrl_mutex);
36 return -EALREADY; 37 return -EALREADY;
37 } 38 }
38 } 39 }