]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] hostap: Do not free local->hw_priv before unregistering netdev
authorJouni Malinen <jkmaline@cc.hut.fi>
Mon, 3 Oct 2005 00:19:00 +0000 (17:19 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 4 Oct 2005 02:00:08 +0000 (22:00 -0400)
commit93eb8600cbb6c74354692cf2b7c3d5b2e799e352
treef6de150b08f98540bf660cedffd77785ce75b479
parentcfb1faf944b6e3b49ecad52bf46ac49014e07e57
[PATCH] hostap: Do not free local->hw_priv before unregistering netdev

local->hw_priv was being freed and set to NULL just before calling
prism2_free_local_data(). However, this may expose a race condition in
which something ends up trying to use hw_priv during shutdown. I
haven't noticed this happening, but better be safe than sorry, so
let's postpone hw_priv freeing to happen only after
prism2_free_local_data() has returned.

Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/wireless/hostap/hostap_cs.c
drivers/net/wireless/hostap/hostap_pci.c
drivers/net/wireless/hostap/hostap_plx.c