ソースを参照

qcacmn: Initialize wlan config structure

When RRI over DDR feature is not enabled,
the variable rri_over_ddr_cfg_valid goes uninitialzed.
This can lead to unpredictable behaviour.

Fix this by initializing pld_wlan_enable_cfg to zero
before use.

Change-Id: I485dc552201111834375411b9a493ddbf9a7505c
CRs-Fixed: 3176497
Madhvapathi Sriram 3 年 前
コミット
c513ba8b9a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      hif/src/ce/ce_main.c

+ 1 - 1
hif/src/ce/ce_main.c

@@ -3776,7 +3776,7 @@ static void hif_update_rri_over_ddr_config(struct hif_softc *scn,
  */
 int hif_wlan_enable(struct hif_softc *scn)
 {
-	struct pld_wlan_enable_cfg cfg;
+	struct pld_wlan_enable_cfg cfg = { 0 };
 	enum pld_driver_mode mode;
 	uint32_t con_mode = hif_get_conparam(scn);