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

mac80211: fix rcu locking

Add a missing rcu_read_unlock() before jumping out
of the ieee80211_change_station() function in the
error case.
Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 f1cf2dbd
......@@ -823,8 +823,10 @@ static int ieee80211_change_station(struct wiphy *wiphy,
}
if (params->vlan->ieee80211_ptr->use_4addr) {
if (vlansdata->u.vlan.sta)
if (vlansdata->u.vlan.sta) {
rcu_read_unlock();
return -EBUSY;
}
rcu_assign_pointer(vlansdata->u.vlan.sta, sta);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册