提交 dc0b0f7d 编写于 作者: J Johannes Berg 提交者: John W. Linville

mac80211: mesh hwmp locking fixes

This fixes missing unlocks noticed by sparse.
Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 902acc78
......@@ -264,8 +264,10 @@ static u32 hwmp_route_info_get(struct net_device *dev,
rcu_read_lock();
sta = sta_info_get(local, mgmt->sa);
if (!sta)
if (!sta) {
rcu_read_unlock();
return 0;
}
last_hop_metric = airtime_link_metric_get(local, sta);
/* Update and check originator routing info */
......@@ -293,6 +295,7 @@ static u32 hwmp_route_info_get(struct net_device *dev,
break;
default:
sta_info_put(sta);
rcu_read_unlock();
return 0;
}
new_metric = orig_metric + last_hop_metric;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册