mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: prevent double free of iface staKeyParams
Memory pointed by stakeyparams is not made NULL after freeing in wma_set_stakey. This results in double free during wma_add_bss_sta. Change-Id: Ifa24d536e116be60f572d9926a511f9f498e6696 CRs-Fixed: 2463399
This commit is contained in:
parent
0ea20b09a3
commit
79947ffaa8
1 changed files with 1 additions and 0 deletions
|
|
@ -5520,6 +5520,7 @@ static void wma_add_sta_req_sta_mode(tp_wma_handle wma, tpAddStaParams params)
|
|||
if (iface->staKeyParams) {
|
||||
wma_set_stakey(wma,
|
||||
(tpSetStaKeyParams) iface->staKeyParams);
|
||||
iface->staKeyParams = NULL;
|
||||
}
|
||||
}
|
||||
maxTxPower = params->maxTxPower;
|
||||
|
|
|
|||
Loading…
Reference in a new issue