mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
f1cf2dbd0f
commit
3305443c96
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue