Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376655
b: refs/heads/master
c: c8aa22d
h: refs/heads/master
i:
  376653: 2cfcd00
  376651: 39e2e00
  376647: c370947
  376639: 3f766cd
v: v3
  • Loading branch information
Johannes Berg committed May 27, 2013
1 parent 1f95b35 commit 559d041
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1351c5d3b189a487fbacd5cdf2dc3e6faf12c682
refs/heads/master: c8aa22db0112f640ac6631347f850879c621840b
9 changes: 9 additions & 0 deletions trunk/net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1703,6 +1703,15 @@ void ieee80211_remove_interfaces(struct ieee80211_local *local)

ASSERT_RTNL();

/*
* Close all AP_VLAN interfaces first, as otherwise they
* might be closed while the AP interface they belong to
* is closed, causing unregister_netdevice_many() to crash.
*/
list_for_each_entry(sdata, &local->interfaces, list)
if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
dev_close(sdata->dev);

mutex_lock(&local->iflist_mtx);
list_for_each_entry_safe(sdata, tmp, &local->interfaces, list) {
list_del(&sdata->list);
Expand Down

0 comments on commit 559d041

Please sign in to comment.