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

Commit 86835d55 authored by Michael Adisumarta's avatar Michael Adisumarta Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: IPA wdi_disconnect put memset after decrement clock



Change the decrement to happen before the memset so the right
client associated with the wdi pipe is decremented.

Change-Id: I17057be63f283ae42e91a841f3e8a5ccac6fa554
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent c1732fc0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1941,8 +1941,8 @@ int ipa3_disconnect_wdi_pipe(u32 clnt_hdl)
	ipa3_delete_dflt_flt_rules(clnt_hdl);
	ipa_release_uc_smmu_mappings(ep->client);

	memset(&ipa3_ctx->ep[clnt_hdl], 0, sizeof(struct ipa3_ep_context));
	IPA_ACTIVE_CLIENTS_DEC_EP(ipa3_get_client_mapping(clnt_hdl));
	memset(&ipa3_ctx->ep[clnt_hdl], 0, sizeof(struct ipa3_ep_context));

	IPADBG("client (ep: %d) disconnected\n", clnt_hdl);