From cbb5b956c33fc8c3df166068105545f0cbec19f5 Mon Sep 17 00:00:00 2001 From: Vignesh Viswanathan Date: Wed, 2 Aug 2017 14:32:49 +0530 Subject: [PATCH] qcacld-3.0: Fix improper handling of lkSmeGlobalLock sme_acquire_global_lock was used in couple of places without proper handling of releasing the acquired lock. Fix the improper handling of lkSmeGlobalLock in multiple funcitons. Change-Id: Ib6cd43fae3fe522fc6388815581389592d3e70f8 CRs-Fixed: 2086102 --- core/sme/src/common/sme_api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 34fbbe6610c3..3f28697031b3 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -12834,7 +12834,7 @@ QDF_STATUS sme_set_epno_list(tHalHandle hal, } status = sme_acquire_global_lock(&mac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { + if (!QDF_IS_STATUS_SUCCESS(status)) { sme_err("sme_acquire_global_lock failed!(status=%d)", status); qdf_mem_free(req_msg); @@ -12901,7 +12901,7 @@ QDF_STATUS sme_set_passpoint_list(tHalHandle hal, } status = sme_acquire_global_lock(&mac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { + if (!QDF_IS_STATUS_SUCCESS(status)) { sme_err("sme_acquire_global_lock failed!(status=%d)", status); qdf_mem_free(req_msg); @@ -12948,7 +12948,7 @@ QDF_STATUS sme_reset_passpoint_list(tHalHandle hal, req_msg->session_id = input->session_id; status = sme_acquire_global_lock(&mac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { + if (!QDF_IS_STATUS_SUCCESS(status)) { sme_err("sme_acquire_global_lock failed!(status=%d)", status); qdf_mem_free(req_msg);