]> git.hungrycats.org Git - linux/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Nov 2015 22:37:30 +0000 (14:37 -0800)
commit85a0a97160e50fa875e15ab29c11204b3065c014
tree1e0ec953aed6d6321e11c00fe00f0c29e2be0fda
parent6bad4a2190270da0dcb6092c362b53e55a209353
iwlwifi: mvm: flush fw_dump_wk when mvm fails to start

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>
drivers/net/wireless/iwlwifi/mvm/ops.c