]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 03:28:14 +0000 (19:28 -0800)
Orabug: 22623804

commit dbf73d4a8bb8f4e1d1f3edd3be825692279e2ef3 upstream.

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")
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit c35a6567e963b129a0258494ef690e29c6fb44ad)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/net/wireless/iwlwifi/mvm/ops.c

index 2ea01238754eb8d1c2470156f0293a2e15988fd6..8d4f287dca3bc3423205c9093bb3d11dd848e476 100644 (file)
@@ -589,6 +589,7 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,
        ieee80211_unregister_hw(mvm->hw);
        iwl_mvm_leds_exit(mvm);
  out_free:
+       flush_delayed_work(&mvm->fw_dump_wk);
        iwl_phy_db_free(mvm->phy_db);
        kfree(mvm->scan_cmd);
        if (!cfg->no_power_up_nic_in_init || !mvm->nvm_file_name)