Browse Source

qcacld-3.0: Fix uninitialized IPA MCC work cancellation

IPA MCC work is initialiazed only when uc code loaded successfully,
before canceling MCC work check for uc load success state.

Change-Id: I9af501d1b974d0da21891634bde2beafd69701b2
CRs-Fixed: 2822382
Karthik Kantamneni 4 years ago
parent
commit
446ec416cd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      components/ipa/core/src/wlan_ipa_core.c

+ 2 - 1
components/ipa/core/src/wlan_ipa_core.c

@@ -3340,7 +3340,8 @@ QDF_STATUS wlan_ipa_cleanup(struct wlan_ipa_priv *ipa_ctx)
 	/* Teardown IPA sys_pipe for MCC */
 	if (wlan_ipa_uc_sta_is_enabled(ipa_ctx->config)) {
 		wlan_ipa_teardown_sys_pipe(ipa_ctx);
-		qdf_cancel_work(&ipa_ctx->mcc_work);
+		if (ipa_ctx->uc_loaded)
+			qdf_cancel_work(&ipa_ctx->mcc_work);
 	}
 
 	wlan_ipa_wdi_destroy_rm(ipa_ctx);