Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d643c432 authored by Johannes Berg's avatar Johannes Berg Committed by Emmanuel Grumbach
Browse files

iwlwifi: mvm: handle device start failure correctly



If the device fails to start correctly prior to loading the
regular runtime firmware (after having run the INIT firmware),
treat that error correctly by actually checking the return
value of _iwl_trans_start_hw() and stopping the device again
before returning an error.

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent 3db93420
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -662,9 +662,9 @@ int iwl_mvm_up(struct iwl_mvm *mvm)
		 * device that are triggered by the INIT firwmare (MFUART).
		 */
		_iwl_trans_stop_device(mvm->trans, false);
		_iwl_trans_start_hw(mvm->trans, false);
		ret = _iwl_trans_start_hw(mvm->trans, false);
		if (ret)
			return ret;
			goto error;
	}

	if (iwlmvm_mod_params.init_dbg)