From f0f97b40058fecd549fee8b27ee58a162b2ba097 Mon Sep 17 00:00:00 2001 From: Jagadeesh Ponduru Date: Tue, 21 Jun 2022 17:51:59 +0530 Subject: [PATCH] msm: ipa3: add check in odl pipe cleanup Adding a change to check whether the pipe has been setup or not before going to teardown the pipe. Change-Id: Ibb408fdf3509facd6c18e3238bdbfd7da0b4a643 Signed-off-by: Jagadeesh Ponduru --- drivers/platform/msm/ipa/ipa_v3/ipa_odl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_odl.c b/drivers/platform/msm/ipa/ipa_v3/ipa_odl.c index ba2686809ebe..9d5b68d0cfa1 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_odl.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_odl.c @@ -473,6 +473,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;