iwlwifi: mvm: flush fw_dump_wk when mvm fails to start
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 30 Sep 2015 10:26:23 +0000 (12:26 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 5 Oct 2015 11:04:16 +0000 (14:04 +0300)
commitdbf73d4a8bb8f4e1d1f3edd3be825692279e2ef3
tree11e5456c541cdd87872680b1ea1697fa4b6b61fb
parent1a3fe0b2b6778b7866e2b3f5c9a299d5e9bbd89c
iwlwifi: mvm: flush fw_dump_wk when mvm fails to start

FW dump may be triggered when running init ucode, for example due to a
sysassert. In this case fw_dump_wk may run after mvm is freed, resulting
in a kernel panic.
Fix it by flushing the work.

Fixes: 01b988a708af ("iwlwifi: mvm: allow to collect debug data when restart is disabled")
Cc: <stable@vger.kernel.org> [3.18+]
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/iwlwifi/mvm/ops.c