]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 Mar 2013 11:10:57 +0000 (12:10 +0100)
commitf6e301462f5cec395fa02f83da7c1fc3b192e1a2
treeb9006f547092838143a54615dceae9c0680e2156
parent3063bddcad32cbd0c70b008f7f3db56517a4f770
iwlwifi: dvm: don't send HCMD in restart flow

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.

Cc: stable@vger.kernel.org
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/dvm/lib.c
drivers/net/wireless/iwlwifi/dvm/ucode.c