From 4b9a9fa22f8a70c6443356fa0c66b4b744701173 Mon Sep 17 00:00:00 2001 From: Manikanta Pubbisetty Date: Thu, 18 Jun 2020 09:53:36 +0530 Subject: [PATCH] qcacld-3.0: move log out of the lock region Currently, if the time spent in a spin_lock region exceeds a certain threshold, a system crash will be triggered. There are chances that a log within a spin_lock region would result in a crash if the time taken to log the buffer exceeds the threshold which triggers the crash. Avoid this by moving the log out of the lock region. Change-Id: Ic51556723033e9553443250b9cb4cfee2b402309 CRs-Fixed: 2713234 --- components/ipa/core/src/wlan_ipa_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ipa/core/src/wlan_ipa_core.c b/components/ipa/core/src/wlan_ipa_core.c index 9517cf906c74..9312fad8c1fc 100644 --- a/components/ipa/core/src/wlan_ipa_core.c +++ b/components/ipa/core/src/wlan_ipa_core.c @@ -1258,8 +1258,8 @@ wlan_ipa_uc_disable_pipes(struct wlan_ipa_priv *ipa_ctx, bool force_disable) qdf_spin_lock_bh(&ipa_ctx->enable_disable_lock); if (ipa_ctx->ipa_pipes_down || ipa_ctx->pipes_down_in_progress) { - ipa_info("IPA WDI Pipes are already deactivated"); qdf_spin_unlock_bh(&ipa_ctx->enable_disable_lock); + ipa_info("IPA WDI Pipes are already deactivated"); return QDF_STATUS_E_ALREADY; } ipa_ctx->pipes_down_in_progress = true;