mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacld-3.0: Purge scan list in failure scenario
Scan list memory is leaked when get scan results failed. Purge the scan list in failure scenario as part of diag scan complete processing. Change-Id: I3705dc3f8ffeb586ba745c46a5215bd3578f75e1 CRs-Fixed: 2137957
This commit is contained in:
parent
04fdea2917
commit
2e233c6a1e
1 changed files with 2 additions and 0 deletions
|
|
@ -2414,6 +2414,8 @@ csr_diag_scan_complete(tpAniSirGlobal mac_ctx,
|
|||
sme_err("get scan result failed");
|
||||
WLAN_HOST_DIAG_LOG_REPORT(pScanLog);
|
||||
wlan_objmgr_pdev_release_ref(pdev, WLAN_LEGACY_MAC_ID);
|
||||
if (list)
|
||||
ucfg_scan_purge_results(list);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue