mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
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:
parent
2c7cff8715
commit
ad79a12e2a
1 changed files with 1 additions and 1 deletions
|
|
@ -3163,7 +3163,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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue