]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: dvm: don't send HCMD in restart flow
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 31 Jan 2013 13:03:55 +0000 (15:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:15 +0000 (09:26 -0700)
commit711f821384218965ad0071501936bd8e1a0ed5ca
treefc8d69a50d7f2c5c16633f3be37d1366b50f217e
parent6c7db2bac62fc0b01ac35981144b05e355cbdb3e
iwlwifi: dvm: don't send HCMD in restart flow

commit 2d5d50ee596361566f7f84300117cba7d7672bc5 upstream.

There is a race between the restart flow and the workers.
The workers are cancelled after the fw is already killed
and might send HCMD when there is fw to handle them.
Simply check that there is a fw to which the HCMD can be
sent before actually sending it.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Lingzhu Xiang <lxiang@redhat.com>
Reviewed-by: CAI Qian <caiqian@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/dvm/lib.c
drivers/net/wireless/iwlwifi/dvm/ucode.c