]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: fix locking when "HW not ready"
authorJohannes Berg <johannes.berg@intel.com>
Fri, 28 Jan 2022 12:30:52 +0000 (14:30 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 3 Feb 2022 08:24:48 +0000 (10:24 +0200)
commit785ec972c3df04e92db0f1a5563aa993fef08144
treef3b6c99e1f3c8894e82626682e89b2af27a51cc6
parentf68ead35991d51580e19c99aa75bc434a56d80e6
iwlwifi: pcie: fix locking when "HW not ready"

If we run into this error path, we shouldn't unlock the mutex
since it's not locked since. Fix this.

Fixes: eefe082b900a ("iwlwifi: pcie: fix RF-Kill vs. firmware load race")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/iwlwifi.20220128142706.5d16821d1433.Id259699ddf9806459856d6aefbdbe54477aecffd@changeid
drivers/net/wireless/intel/iwlwifi/pcie/trans.c