iwlwifi: fix race condition during driver unload
authorMohamed Abbas <mabbas@linux.intel.com>
Fri, 28 Mar 2008 23:21:08 +0000 (16:21 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 1 Apr 2008 21:13:18 +0000 (17:13 -0400)
commit0359facc7b7a37fd1223ac60649c80cd8daeaf73
treefcf6d571afa5a30dc893f853e20e6d81a3871b92
parentad97edd2f524940d524c26ae273a4eb23067a7c0
iwlwifi: fix race condition during driver unload

This patch fixed the OOPS when load the driver while rf-kill is on then
unload the driver right after load. a race condition caused the interupt
handler to schedule the tasklet which will run right after the driver pci_remove
causing invalid poiter OOPS.

Signed-off-by: Mohamed Abbas <mabbas@linux.intel.com>
Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl4965-base.c