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:

committed by
nshrivas

parent
0ea20b09a3
commit
79947ffaa8
@@ -5520,6 +5520,7 @@ static void wma_add_sta_req_sta_mode(tp_wma_handle wma, tpAddStaParams params)
|
|||||||
if (iface->staKeyParams) {
|
if (iface->staKeyParams) {
|
||||||
wma_set_stakey(wma,
|
wma_set_stakey(wma,
|
||||||
(tpSetStaKeyParams) iface->staKeyParams);
|
(tpSetStaKeyParams) iface->staKeyParams);
|
||||||
|
iface->staKeyParams = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
maxTxPower = params->maxTxPower;
|
maxTxPower = params->maxTxPower;
|
||||||
|
Reference in New Issue
Block a user