Merge "msm: ipa3: add check in odl pipe cleanup"
diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_odl.c b/drivers/platform/msm/ipa/ipa_v3/ipa_odl.c
index 2123327..c50b3ea 100644
--- a/drivers/platform/msm/ipa/ipa_v3/ipa_odl.c
+++ b/drivers/platform/msm/ipa/ipa_v3/ipa_odl.c
@@ -483,6 +483,12 @@
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;