From 79947ffaa87d812e1897b5b32ee8cb9332a6dc39 Mon Sep 17 00:00:00 2001 From: Rajasekaran Kalidoss Date: Mon, 10 Jun 2019 09:34:25 +0530 Subject: [PATCH] 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 --- core/wma/src/wma_dev_if.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c index 395ca528ab26..5c4c44dd9a7a 100644 --- a/core/wma/src/wma_dev_if.c +++ b/core/wma/src/wma_dev_if.c @@ -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;