mac80211: fix mesh_sta_info_get() reshuffle damage
authorThomas Pedersen <thomas@cozybit.com>
Sun, 27 Jan 2013 01:00:02 +0000 (17:00 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 28 Jan 2013 12:15:34 +0000 (13:15 +0100)
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>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c

index 4e1d406fd9b1fb27e12c923218922c92ef6ebbf3..81e612682bc3320e05ffd0a1e18149c7fdb1012f 100644 (file)
@@ -408,6 +408,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;
        }