kernel_optimize_test/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
..
aes_ccm.c
aes_ccm.h
cfg.c
cfg.h
debugfs_key.c
debugfs_key.h
debugfs_netdev.c
debugfs_netdev.h
debugfs_sta.c
debugfs_sta.h
debugfs.c
debugfs.h
event.c
ieee80211_i.h
iface.c
Kconfig
key.c
key.h
led.c
led.h
main.c mac80211: Do not free net device after it is unregistered. 2008-05-04 17:59:30 -07:00
Makefile
mesh_hwmp.c
mesh_pathtbl.c
mesh_plink.c
mesh.c
mesh.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/linville/wireless-2.6 2008-05-01 02:06:32 -07:00
michael.c
michael.h
mlme.c
rate.c
rate.h
rc80211_pid_algo.c
rc80211_pid_debugfs.c
rc80211_pid.h
rx.c
sta_info.c
sta_info.h
tkip.c mac80211: incorrect shift direction 2008-04-30 20:34:26 -04:00
tkip.h
tx.c
util.c
wep.c
wep.h
wext.c
wme.c
wme.h
wpa.c
wpa.h