diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-05-23 23:06:09 (GMT) |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-05-27 09:26:47 (GMT) |
commit | c8aa22db0112f640ac6631347f850879c621840b (patch) | |
tree | b6865c7260beecedfeca2ce88a2d32005404d649 /drivers/hid | |
parent | 1351c5d3b189a487fbacd5cdf2dc3e6faf12c682 (diff) | |
download | linux-c8aa22db0112f640ac6631347f850879c621840b.tar.xz |
mac80211: close AP_VLAN interfaces before unregistering all
Since Eric's commit efe117ab8 ("Speedup ieee80211_remove_interfaces")
there's a bug in mac80211 when it unregisters with AP_VLAN interfaces
up. If the AP_VLAN interface was registered after the AP it belongs
to (which is the typical case) and then we get into this code path,
unregister_netdevice_many() will crash because it isn't prepared to
deal with interfaces being closed in the middle of it. Exactly this
happens though, because we iterate the list, find the AP master this
AP_VLAN belongs to and dev_close() the dependent VLANs. After this,
unregister_netdevice_many() won't pick up the fact that the AP_VLAN
is already down and will do it again, causing a crash.
Cc: stable@vger.kernel.org [2.6.33+]
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/hid')
0 files changed, 0 insertions, 0 deletions