original_kernel/net/mac80211
Pavel Emelyanov 339a7c41c9 mac80211: Do not free net device after it is unregistered.
The error path in ieee80211_register_hw() may call the unregister_netdev()
and right after it - the free_netdev(), which is wrong, since the
unregister releases the device itself.

So the proposed fix is to NULL the local->mdev after unregister is done
and check this before calling free_netdev().

I checked - no code uses the local->mdev after unregister in this error
path (but even if some did this would be a BUG).

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-05-04 17:59:30 -07:00
..
Kconfig
Makefile
aes_ccm.c
aes_ccm.h
cfg.c
cfg.h
debugfs.c
debugfs.h
debugfs_key.c
debugfs_key.h
debugfs_netdev.c
debugfs_netdev.h
debugfs_sta.c
debugfs_sta.h
event.c
ieee80211_i.h
iface.c
key.c
key.h
led.c
led.h
main.c
mesh.c
mesh.h
mesh_hwmp.c
mesh_pathtbl.c
mesh_plink.c
michael.c
michael.h
mlme.c
rate.c
rate.h
rc80211_pid.h
rc80211_pid_algo.c
rc80211_pid_debugfs.c
rx.c
sta_info.c
sta_info.h
tkip.c
tkip.h
tx.c
util.c
wep.c
wep.h
wext.c
wme.c
wme.h
wpa.c
wpa.h