Skip to contentSkip to conversation

mac80211: fix mesh_sta_info_get() reshuffle damage

PATCH In review Thomas Pedersen 2 participants 2 messages Jan 27, 2013 – Jan 28, 2013 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: fix mesh_sta_info_get() reshuffle damage

Before "mac80211: clean up mesh sta allocation warning" was applied, mesh_sta_info_get() was reshuffled to please sparse. As a result we neglect to initialize newly created STAs. Fix this.

---
 net/mac80211/mesh_plink.c |    2 ++
 1 file changed, 2 insertions(+)
net/mac80211/mesh_plink.c +2 -0
index ca4f2d8..6787d69 100644
@@ -468,6 +468,8 @@ mesh_sta_info_get(struct ieee80211_sub_if_data *sdata,
 			return NULL;
 		}
 
+		mesh_sta_info_init(sdata, sta, elems, true);
+
 		if (sta_info_insert_rcu(sta))
 			return NULL;
 	}
Signature · 1 line
1.7.10.4
maintainer
#1 lore raw
Quoted 4 lines · Thomas Pedersen

Before "mac80211: clean up mesh sta allocation warning" was applied, mesh_sta_info_get() was reshuffled to please sparse. As a result we neglect to initialize newly created STAs. Fix this.

Ouch, sorry. Applied.

johannes