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
This commit is contained in:
Vignesh Viswanathan 2017-08-02 14:32:49 +05:30 • committed by snandini
commit cbb5b956c3

View file

@ -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);