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

Commit 47849962 authored by Jagadeesh Ponduru's avatar Jagadeesh Ponduru Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: add cleanup_rx if setup pipe failed.



Whenever WAN CONS/WAN_COAL_CONS pipes setup fails,
cleaning up the allocated common buffer and temp pools.

Change-Id: I08c58d7bd36edbe820137d3fd760900598c4c8e6
Signed-off-by: default avatarJagadeesh Ponduru <quic_jponduru@quicinc.com>
parent 811b817a
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1383,10 +1383,14 @@ int ipa3_setup_sys_pipe(struct ipa_sys_connect_params *sys_in, u32 *clnt_hdl)
fail_gen3:
	ipa3_disable_data_path(ipa_ep_idx);
fail_repl:
	ep->sys->repl_hdlr = ipa3_replenish_rx_cache;
	if (IPA_CLIENT_IS_CONS(ep->client))
		ipa3_cleanup_rx(ep->sys);

	if(ep->sys->repl) {
		ep->sys->repl->capacity = 0;
		kfree(ep->sys->repl);
		ep->sys->repl = NULL;
	}
fail_page_recycle_repl:
	if (ep->sys->page_recycle_repl) {
		ep->sys->page_recycle_repl->capacity = 0;