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 in csr_process_set_hw_mode
Memory is not freed in csr_process_set_hw_mode in the failure case when connection or bt coex is in progress. Fix is to free memory in failure case. Change-Id: I6be164c516ce30d5def7b0088c8b62d6409acf6a CRs-Fixed: 2024748
This commit is contained in:
parent
41309fa8c4
commit
d4b482a14f
1 changed files with 3 additions and 1 deletions
|
|
@ -19903,7 +19903,7 @@ QDF_STATUS csr_issue_stored_joinreq(tpAniSirGlobal mac_ctx,
|
|||
void csr_process_set_hw_mode(tpAniSirGlobal mac, tSmeCmd *command)
|
||||
{
|
||||
uint32_t len;
|
||||
struct s_sir_set_hw_mode *cmd;
|
||||
struct s_sir_set_hw_mode *cmd = NULL;
|
||||
QDF_STATUS status;
|
||||
struct scheduler_msg msg;
|
||||
struct sir_set_hw_mode_resp *param;
|
||||
|
|
@ -19980,6 +19980,8 @@ void csr_process_set_hw_mode(tpAniSirGlobal mac, tSmeCmd *command)
|
|||
}
|
||||
return;
|
||||
fail:
|
||||
if (cmd)
|
||||
qdf_mem_free(cmd);
|
||||
param = qdf_mem_malloc(sizeof(*param));
|
||||
if (!param) {
|
||||
sms_log(mac, LOGE,
|
||||
|
|
|
|||
Loading…
Reference in a new issue