Skip to content

Commit

Permalink
mac80211: fix mesh_sta_info_get() reshuffle damage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Pedersen authored and Johannes Berg committed Jan 28, 2013
1 parent 77765ea commit 3b4797b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/mac80211/mesh_plink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3b4797b

Please sign in to comment.