mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
qcacld-3.0: Fix memory corruption in CSR
Freed scan list is accessed in CSR. Don't free the memory when the scan list contains zero entries. Change-Id: Ia3bd1193288781ea15a2eab2e0a0ffd24b4d03f7 CRs-Fixed: 2052399
This commit is contained in:
parent
89f7e39781
commit
68726b6c73
1 changed files with 0 additions and 1 deletions
|
|
@ -5352,7 +5352,6 @@ tpSirBssDescription csr_get_fst_bssdescr_ptr(tScanResultHandle result_handle)
|
|||
if (csr_ll_is_list_empty(&bss_list->List, LL_ACCESS_NOLOCK)) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
|
||||
FL("bss_list->List is empty"));
|
||||
qdf_mem_free(bss_list);
|
||||
return NULL;
|
||||
}
|
||||
first_element = csr_ll_peek_head(&bss_list->List, LL_ACCESS_NOLOCK);
|
||||
|
|
|
|||
Loading…
Reference in a new issue