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

Commit 32123a44 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: fix multiple static analysis issues"

parents 9bdf4eed 11c818ea
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -276,8 +276,6 @@ fail_ep_exists:
 */
int ipa2_disconnect_mhi_pipe(u32 clnt_hdl)
{
	struct ipa_ep_context *ep;

	IPA_MHI_FUNC_ENTRY();

	if (clnt_hdl >= ipa_ctx->ipa_num_pipes) {
@@ -290,7 +288,8 @@ int ipa2_disconnect_mhi_pipe(u32 clnt_hdl)
		return -EINVAL;
	}

	ep->valid = 0;
	ipa_ctx->ep[clnt_hdl].valid = 0;

	ipa_delete_dflt_flt_rules(clnt_hdl);

	IPA_MHI_DBG("client (ep: %d) disconnected\n", clnt_hdl);
@@ -302,14 +301,13 @@ int ipa2_mhi_resume_channels_internal(enum ipa_client_type client,
		bool LPTransitionRejected, bool brstmode_enabled,
		union __packed gsi_channel_scratch ch_scratch, u8 index)
{
	int i;
	int res;

	IPA_MHI_FUNC_ENTRY();
	res = ipa_uc_mhi_resume_channel(index, LPTransitionRejected);
	if (res) {
		IPA_MHI_ERR("failed to suspend channel %d error %d\n",
			i, res);
		IPA_MHI_ERR("failed to suspend channel %u error %d\n",
			index, res);
		return res;
	}

+17 −8
Original line number Diff line number Diff line
@@ -1890,36 +1890,44 @@ static int ipa3_q6_clean_q6_tables(void)

	if (ipa3_q6_clean_q6_flt_tbls(IPA_IP_v4, IPA_RULE_HASHABLE, &mem)) {
		IPAERR("failed to clean q6 flt tbls (v4/hashable)\n");
		goto bail_desc;
		retval = -EFAULT;
		goto bail_dma;
	}
	if (ipa3_q6_clean_q6_flt_tbls(IPA_IP_v6, IPA_RULE_HASHABLE, &mem)) {
		IPAERR("failed to clean q6 flt tbls (v6/hashable)\n");
		goto bail_desc;
		retval = -EFAULT;
		goto bail_dma;
	}
	if (ipa3_q6_clean_q6_flt_tbls(IPA_IP_v4, IPA_RULE_NON_HASHABLE, &mem)) {
		IPAERR("failed to clean q6 flt tbls (v4/non-hashable)\n");
		goto bail_desc;
		retval = -EFAULT;
		goto bail_dma;
	}
	if (ipa3_q6_clean_q6_flt_tbls(IPA_IP_v6, IPA_RULE_NON_HASHABLE, &mem)) {
		IPAERR("failed to clean q6 flt tbls (v6/non-hashable)\n");
		goto bail_desc;
		retval = -EFAULT;
		goto bail_dma;
	}

	if (ipa3_q6_clean_q6_rt_tbls(IPA_IP_v4, IPA_RULE_HASHABLE, &mem)) {
		IPAERR("failed to clean q6 rt tbls (v4/hashable)\n");
		goto bail_desc;
		retval = -EFAULT;
		goto bail_dma;
	}
	if (ipa3_q6_clean_q6_rt_tbls(IPA_IP_v6, IPA_RULE_HASHABLE, &mem)) {
		IPAERR("failed to clean q6 rt tbls (v6/hashable)\n");
		goto bail_desc;
		retval = -EFAULT;
		goto bail_dma;
	}
	if (ipa3_q6_clean_q6_rt_tbls(IPA_IP_v4, IPA_RULE_NON_HASHABLE, &mem)) {
		IPAERR("failed to clean q6 rt tbls (v4/non-hashable)\n");
		goto bail_desc;
		retval = -EFAULT;
		goto bail_dma;
	}
	if (ipa3_q6_clean_q6_rt_tbls(IPA_IP_v6, IPA_RULE_NON_HASHABLE, &mem)) {
		IPAERR("failed to clean q6 rt tbls (v6/non-hashable)\n");
		goto bail_desc;
		retval = -EFAULT;
		goto bail_dma;
	}

	/* Flush rules cache */
@@ -1944,6 +1952,7 @@ static int ipa3_q6_clean_q6_tables(void)
		&reg_write_cmd, false);
	if (!cmd_pyld) {
		IPAERR("fail construct register_write imm cmd\n");
		retval = -EFAULT;
		goto bail_desc;
	}
	desc->opcode =
+0 −5
Original line number Diff line number Diff line
@@ -549,11 +549,6 @@ int ipa3_mhi_resume_channels_internal(enum ipa_client_type client,
			return res;
		}
	}
	if (res) {
		IPA_MHI_ERR("failed to resume channel error %d\n",
			res);
		return res;
	}

	res = gsi_start_channel(ep->gsi_chan_hdl);
	if (res) {