Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3305443c authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

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: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f1cf2dbd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
		}