Commit f31f7cd9 authored by Gregory Greenman's avatar Gregory Greenman
Browse files

wifi: iwlwifi: mei: fix parameter passing to iwl_mei_alive_notif()



Pass true explicitly to iwl_mei_alive_notif() when we can be
sure that Alive notification was received. The issue was discovered
by Smatch.

Reported-by: default avatarDan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/all/Y3uYUEFnMiBY2ABQ@kili/
Link: https://lore.kernel.org/r/20221123225313.83c2251055c1.Ia028357e7ab36dfc2abf85106a5926ee7893a408@changeid


Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
parent 274d9aa9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -418,7 +418,8 @@ static int iwl_mvm_load_ucode_wait_alive(struct iwl_mvm *mvm,
		return -EIO;
	}

	iwl_mei_alive_notif(!ret);
	/* if reached this point, Alive notification was received */
	iwl_mei_alive_notif(true);

	ret = iwl_pnvm_load(mvm->trans, &mvm->notif_wait);
	if (ret) {