]> www.infradead.org Git - users/dwmw2/linux.git/commit
iwlwifi: pcie: gen2: fix locking when "HW not ready"
authorJohannes Berg <johannes.berg@intel.com>
Fri, 28 Jan 2022 12:30:53 +0000 (14:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 10:58:39 +0000 (11:58 +0100)
commit37e7ae454c6b776855f7c316f682b7b9af7ab06e
tree1ecb6a97b5f61a383e3dce196bb13d11eff06a57
parentbf9b45129cedc2972d6148c84304dd3c4a9ab038
iwlwifi: pcie: gen2: fix locking when "HW not ready"

commit 4c29c1e27a1e178a219b3877d055e6dd643bdfda upstream.

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

Fixes: eda50cde58de ("iwlwifi: pcie: add context information support")
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.b8b0dfce16ef.Ie20f0f7b23e5911350a2766524300d2915e7b677@changeid
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c