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

Commit 4de5180f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa3: fixed memory leak"

parents 6774fc89 67b555cc
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -675,6 +675,7 @@ int ipa3_disconn_wdi3_pipes(int ipa_ep_idx_tx, int ipa_ep_idx_rx)
		IPAERR("failed to release gsi channel: %d\n", result);
		IPAERR("failed to release gsi channel: %d\n", result);
		goto exit;
		goto exit;
	}
	}
	ipa3_release_wdi3_gsi_smmu_mappings(IPA_WDI3_TX_DIR);


	memset(ep_tx, 0, sizeof(struct ipa3_ep_context));
	memset(ep_tx, 0, sizeof(struct ipa3_ep_context));
	IPADBG("tx client (ep: %d) disconnected\n", ipa_ep_idx_tx);
	IPADBG("tx client (ep: %d) disconnected\n", ipa_ep_idx_tx);
@@ -695,6 +696,7 @@ int ipa3_disconn_wdi3_pipes(int ipa_ep_idx_tx, int ipa_ep_idx_rx)
		IPAERR("failed to release gsi channel: %d\n", result);
		IPAERR("failed to release gsi channel: %d\n", result);
		goto exit;
		goto exit;
	}
	}
	ipa3_release_wdi3_gsi_smmu_mappings(IPA_WDI3_RX_DIR);


	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 ||
	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 ||
		(ipa3_ctx->ipa_hw_type == IPA_HW_v4_1 &&
		(ipa3_ctx->ipa_hw_type == IPA_HW_v4_1 &&