浏览代码

ieee80211_rate: missed unlock

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Cyrill Gorcunov 17 年之前
父节点
当前提交
b808ab16a9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/mac80211/ieee80211_rate.c

+ 1 - 0
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;
 		}
 	}