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
This commit is contained in:
Madhvapathi Sriram
2022-04-15 18:57:39 +05:30
committed by Madan Koyyalamudi
parent 490ea7cc78
commit c513ba8b9a

View File

@@ -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);