From: Cyrill Gorcunov Date: Thu, 13 Dec 2007 23:52:11 +0000 (-0800) Subject: ieee80211_rate: missed unlock X-Git-Tag: v2.6.24-rc6~22^2^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b808ab16a9c99c00e3d8c3b351977fce62781dd0;p=linux-2.6-omap-h63xx.git ieee80211_rate: missed unlock Signed-off-by: Andrew Morton Signed-off-by: John W. Linville --- diff --git a/net/mac80211/ieee80211_rate.c b/net/mac80211/ieee80211_rate.c index 7254bd60983..3260a4a0ecc 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) if (!strcmp(alg->ops->name, ops->name)) { /* don't register an algorithm twice */ WARN_ON(1); + mutex_unlock(&rate_ctrl_mutex); return -EALREADY; } }