diff mbox

mac80211: fix mesh_sta_info_get() reshuffle damage

Message ID 1359248402-6595-1-git-send-email-thomas@cozybit.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Thomas Pedersen Jan. 27, 2013, 1 a.m. UTC
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.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
---
 net/mac80211/mesh_plink.c |    2 ++
 1 file changed, 2 insertions(+)

Comments

Johannes Berg Jan. 28, 2013, 12:16 p.m. UTC | #1
On Sat, 2013-01-26 at 17:00 -0800, Thomas Pedersen wrote:
> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
index ca4f2d8..6787d69 100644
--- a/net/mac80211/mesh_plink.c
+++ b/net/mac80211/mesh_plink.c
@@ -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;
 	}