mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Fix possible memory leak when set station key
If calling lim_send_set_sta_key_req with sendRsp==false, it didn't free the tpSetStaKeyParams memory allocated in this function. This scenario is possible hit when station key update during roaming before new bss adding. Change-Id: I29209576622bc2495a7ce3064e82efca2e70d19a CRs-Fixed: 2452108
This commit is contained in:
parent
62e574550b
commit
aaa2a05e74
1 changed files with 2 additions and 0 deletions
|
|
@ -2628,6 +2628,8 @@ out:
|
|||
if (key_info->sendRsp)
|
||||
wma_send_msg_high_priority(wma_handle, WMA_SET_STAKEY_RSP,
|
||||
(void *)key_info, 0);
|
||||
else
|
||||
qdf_mem_free(key_info);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue