mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
iwlwifi: pcie: fix locking when "HW not ready"
commite9848aed14upstream. If we run into this error path, we shouldn't unlock the mutex since it's not locked since. Fix this. Fixes:a6bd005fe9("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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f3c1910257
commit
8867f99379
|
|
@ -1313,8 +1313,7 @@ static int iwl_trans_pcie_start_fw(struct iwl_trans *trans,
|
||||||
/* This may fail if AMT took ownership of the device */
|
/* This may fail if AMT took ownership of the device */
|
||||||
if (iwl_pcie_prepare_card_hw(trans)) {
|
if (iwl_pcie_prepare_card_hw(trans)) {
|
||||||
IWL_WARN(trans, "Exit HW not ready\n");
|
IWL_WARN(trans, "Exit HW not ready\n");
|
||||||
ret = -EIO;
|
return -EIO;
|
||||||
goto out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
iwl_enable_rfkill_int(trans);
|
iwl_enable_rfkill_int(trans);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user