From c8ef7c5577e331bfd4188ad036061a7d1a81ed75 Mon Sep 17 00:00:00 2001 From: vtanuku Date: Mon, 27 Apr 2020 12:22:09 +0530 Subject: [PATCH] qcacld-3.0: Fix KW issue, initialize therm_data to zero Fix KW issue: therm_data.levelconf array elements are used uninitialized Initialize therm_data in wma_update_thermal_mitigation_to_fw to zero Change-Id: I40c4f57d70036956d0d618ad560ea9ea0f7dc07d CRs-Fixed: 2669375 --- core/wma/src/wma_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wma/src/wma_data.c b/core/wma/src/wma_data.c index 785f0cf3b8..a312376c99 100644 --- a/core/wma/src/wma_data.c +++ b/core/wma/src/wma_data.c @@ -1677,7 +1677,7 @@ QDF_STATUS wma_process_init_bad_peer_tx_ctl_info(tp_wma_handle wma, static QDF_STATUS wma_update_thermal_mitigation_to_fw(tp_wma_handle wma, u_int8_t thermal_level) { - struct thermal_mitigation_params therm_data; + struct thermal_mitigation_params therm_data = {0}; /* Check if vdev is in mcc, if in mcc set dc value as 10, else 100 */ therm_data.dc = 100;