projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77765ea
)
mac80211: fix mesh_sta_info_get() reshuffle damage
author
Thomas Pedersen
<
[email protected]
>
Sun, 27 Jan 2013 01:00:02 +0000
(17:00 -0800)
committer
Johannes Berg
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Johannes Berg <
[email protected]
>
net/mac80211/mesh_plink.c
patch
|
blob
|
history
diff --git
a/net/mac80211/mesh_plink.c
b/net/mac80211/mesh_plink.c
index 4e1d406fd9b1fb27e12c923218922c92ef6ebbf3..81e612682bc3320e05ffd0a1e18149c7fdb1012f 100644
(file)
--- a/
net/mac80211/mesh_plink.c
+++ b/
net/mac80211/mesh_plink.c
@@
-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;
}