mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacld-3.0: Fix memory leak while handling deauth req's error case
When caller calls lim_process_mlm_deauth_req() API, it checks for session's validity before passing it forward. If session is found to be invalid then it is returning immediately without releasing the memory. Caller is expecting this API to release the memory in any error cases. Release the memory before returning to caller in error case. CRs-Fixed: 2138983 Change-Id: I800d717cd22a6e2731ef211743e4844852a132a3
This commit is contained in:
parent
fe64b47ae8
commit
f7387bda9c
1 changed files with 1 additions and 0 deletions
|
|
@ -1888,6 +1888,7 @@ lim_process_mlm_deauth_req(tpAniSirGlobal mac_ctx, uint32_t *msg_buf)
|
|||
if (NULL == session) {
|
||||
pe_err("session does not exist for given sessionId %d",
|
||||
mlm_deauth_req->sessionId);
|
||||
qdf_mem_free(mlm_deauth_req);
|
||||
return;
|
||||
}
|
||||
lim_process_mlm_deauth_req_ntf(mac_ctx, QDF_STATUS_SUCCESS,
|
||||
|
|
|
|||
Loading…
Reference in a new issue