mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-20 03:30:59 -04:00
qcacld-3.0: Fix memory leak in SAP csr roam profile during SSR
In case of SSR and SAP is active, if hdd_init_ap_mode is not clean SAP profile will leak memory. Fix memory leak in this case. Change-Id: I7655d8f1d5654e583cbf4812c7f5e2a3a20ff54a CRs-Fixed: 2112581
This commit is contained in:
parent
722cc42c9e
commit
09b96dfecf
1 changed files with 1 additions and 0 deletions
|
|
@ -2035,6 +2035,7 @@ QDF_STATUS sap_clear_session_param(tHalHandle hal, struct sap_context *sapctx,
|
|||
mac_ctx->sap.sapCtxList[sapctx->sessionId].sapPersona =
|
||||
QDF_MAX_NO_OF_MODE;
|
||||
sap_clear_global_dfs_param(hal);
|
||||
sap_free_roam_profile(&sapctx->csr_roamProfile);
|
||||
qdf_mem_zero(sapctx, sizeof(*sapctx));
|
||||
sapctx->sessionId = CSR_SESSION_ID_INVALID;
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_DEBUG,
|
||||
|
|
|
|||
Loading…
Reference in a new issue