From b90f3f25dbfe541cdbfe4c0a52a868edfed5f0b7 Mon Sep 17 00:00:00 2001 From: Nishank Aggarwal Date: Thu, 16 Mar 2017 14:30:18 +0530 Subject: qcacld-3.0: Fix ASSERT while loading driver Currently in csr_purge_old_scan_results() mutex_lock did't acquire by current thread but same thread is releasing the lock due to which there is a ASSERT while releasing mutex_lock. Fix is to acuire the mutex_lock properly before releasing. Change-Id: I1023dca73ffaa3d3b3a123d474c3ac5b0e1c1af2 CRs-Fixed: 2020452 --- core/sme/src/csr/csr_api_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index 8338b3f4b116..c06a086a14a9 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -2887,7 +2887,7 @@ static void csr_purge_scan_results(tpAniSirGlobal mac_ctx) uint64_t curr_time = (uint64_t)qdf_mc_timer_get_system_time(); int8_t weakest_rssi = 0; - csr_ll_unlock(&mac_ctx->scan.scanResultList); + csr_ll_lock(&mac_ctx->scan.scanResultList); pentry = csr_ll_peek_head(&mac_ctx->scan.scanResultList, LL_ACCESS_NOLOCK); while (pentry) { -- cgit v1.2.3