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

Commit 833e1f74 authored by Jagadeesh Ponduru's avatar Jagadeesh Ponduru
Browse files

msm: ipa3: add check in odl pipe cleanup



Adding a change to check whether the pipe has been
setup or not first before going to teardown the pipe.

Change-Id: Ibb408fdf3509facd6c18e3238bdbfd7da0b4a643
Signed-off-by: default avatarJagadeesh Ponduru <quic_jponduru@quicinc.com>
parent 6658722a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -469,6 +469,12 @@ void ipa3_odl_pipe_cleanup(bool is_ssr)
		IPAERR("adpl pipe not configured\n");
		return;
	}

	if (!ipa3_odl_ctx->odl_state.odl_ep_setup) {
		IPAERR("adpl pipe setup not done\n");
		return;
	}

	if (ipa3_odl_ctx->odl_state.odl_open)
		ipa_odl_opened = true;