diff options
| author | Nishank Aggarwal <naggar@codeaurora.org> | 2017-03-16 14:30:18 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-03-17 12:08:44 -0700 |
| commit | b90f3f25dbfe541cdbfe4c0a52a868edfed5f0b7 (patch) | |
| tree | b53cc1951a1d0a5a1eebc0581b65f38a191ee1cb | |
| parent | 1e4a0d342a0d8eda175db132f12ab6cf51e9e4b0 (diff) | |
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
| -rw-r--r-- | core/sme/src/csr/csr_api_scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
