mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Fix potential memory leaks in SSR
qcacld-2.0 to qcacld-3.0 propagation During SSR, since VDEV detach won't happen, some contexts saved in VDEV may not get a chance to be freed. Add change to check these contexts in SSR shutdown routine to make sure they are freed. Change-Id: I36d12b3bb524ca107ece2441c1dc1d80293cb31b CRs-fixed: 957587
This commit is contained in:
parent
f83551419e
commit
24cc9e05c8
1 changed files with 11 additions and 0 deletions
|
|
@ -2951,6 +2951,17 @@ CDF_STATUS wma_wmi_service_close(void *cds_ctx)
|
|||
cdf_mem_free(wma_handle->interfaces[i].handle);
|
||||
wma_handle->interfaces[i].handle = NULL;
|
||||
}
|
||||
|
||||
if (wma_handle->interfaces[i].addBssStaContext) {
|
||||
cdf_mem_free(wma_handle->
|
||||
interfaces[i].addBssStaContext);
|
||||
wma_handle->interfaces[i].addBssStaContext = NULL;
|
||||
}
|
||||
|
||||
if (wma_handle->interfaces[i].del_staself_req) {
|
||||
cdf_mem_free(wma_handle->interfaces[i].del_staself_req);
|
||||
wma_handle->interfaces[i].del_staself_req = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
cdf_mem_free(wma_handle->interfaces);
|
||||
|
|
|
|||
Loading…
Reference in a new issue