]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: unconditionally stop device after init
authorJohannes Berg <johannes.berg@intel.com>
Wed, 31 May 2017 12:14:51 +0000 (14:14 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 29 Jun 2017 10:26:26 +0000 (13:26 +0300)
commit82e3324642941c2c27328a08b218812067a12cd2
tree43f885cf733bde354ac1d008ae33e144cf3e8d45
parentc4bc07a33ca93cbedfb52632c365586520d9fc86
iwlwifi: mvm: unconditionally stop device after init

In commit cd4357d0761d ("iwlwifi: mvm: fix init_dbg flow to work
as expected"), the code was changed to make the stop conditional
on not having failed (and on not having init_dbg), which doesn't
make sense - we should stop the device regardless of failures.

Failure to do so is leading to the device being enabled when it
shouldn't be, and - if it gets re-enabled later - the new context
info code gets confused as paging data wasn't freed.

Remove the invalid error condition again.

Fixes: cd4357d0761d ("iwlwifi: mvm: fix init_dbg flow to work as expected")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/ops.c