Sfoglia il codice sorgente

Merge "msm: ipa3: add check in odl pipe cleanup"

qctecmdr 2 anni fa
parent
commit
a335234cf6
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      drivers/platform/msm/ipa/ipa_v3/ipa_odl.c

+ 6 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_odl.c

@@ -483,6 +483,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;