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:
Sandeep Puligilla 2017-11-07 12:45:57 -08:00 • committed by snandini
commit 2e233c6a1e

View file

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