From 332c4e19ab83cc8c28a12be89da152f6d851c5e1 Mon Sep 17 00:00:00 2001 From: Arun Kumar Khandavalli Date: Mon, 1 Feb 2021 12:44:31 +0530 Subject: [PATCH] qcacld-3.0: Release sme global lock in the error condition with recent commit 203218df88e7 ("qcacld-3.0: Set sme power stats response cb and context to NULL") fix in the error condition the sme global lock is not getting released resulting in the mc thread being struck. Release the sme global lock in the error condition. Change-Id: I6235a632c6b74c48374d4584eb727bf9ffe296a8 CRs-Fixed: 2867358 --- core/sme/src/common/sme_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 40cbfc7b5aba..4200e7567f90 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -10718,6 +10718,7 @@ QDF_STATUS sme_power_debug_stats_req( if (mac_ctx->sme.power_debug_stats_context || mac_ctx->sme.power_stats_resp_callback) { sme_err("Already one power stats req in progress"); + sme_release_global_lock(&mac_ctx->sme); return QDF_STATUS_E_ALREADY; } mac_ctx->sme.power_debug_stats_context = power_stats_context;