From: Cyrill Gorcunov Date: Thu, 13 Dec 2007 23:52:11 +0000 (-0800) Subject: ieee80211_rate: missed unlock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b808ab16a9c99c00e3d8c3b351977fce62781dd0;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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; } }