浏览代码

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
vtanuku 5 年之前
父节点
当前提交
c8ef7c5577
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/wma/src/wma_data.c

+ 1 - 1
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;