Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89977
b: refs/heads/master
c: e6a5ddf
h: refs/heads/master
i:
  89975: 4050db3
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Feb 29, 2008
1 parent a41f36a commit 43cbee8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2485f7105f20f85c2dbebc67be6b2cb97175fa7e
refs/heads/master: e6a5ddf20886206caf1c4a2431f6ff01198ab0f7
6 changes: 5 additions & 1 deletion trunk/net/mac80211/ieee80211_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ void ieee80211_if_reinit(struct net_device *dev)
/* Remove all virtual interfaces that use this BSS
* as their sdata->bss */
struct ieee80211_sub_if_data *tsdata, *n;
struct beacon_data *beacon;

list_for_each_entry_safe(tsdata, n, &local->interfaces, list) {
if (tsdata != sdata && tsdata->bss == &sdata->u.ap) {
Expand All @@ -210,7 +211,10 @@ void ieee80211_if_reinit(struct net_device *dev)
}
}

kfree(sdata->u.ap.beacon);
beacon = sdata->u.ap.beacon;
rcu_assign_pointer(sdata->u.ap.beacon, NULL);
synchronize_rcu();
kfree(beacon);

while ((skb = skb_dequeue(&sdata->u.ap.ps_bc_buf))) {
local->total_ps_buffered--;
Expand Down

0 comments on commit 43cbee8

Please sign in to comment.