Просмотр исходного кода

qcacld-3.0: Initialize HTC Pipe Ready message timeout

Init htcinfo structure variables to 0 to avoid issues
due to any newly added uninitialized variables in the future.

Change-Id: Ie4cf5c99c09f56ee1fc898397bcd3ccf4b678638
CRs-Fixed: 2962285
Amit Mehta 3 лет назад
Родитель
Сommit
90acd43772
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      core/cds/src/cds_api.c

+ 1 - 1
core/cds/src/cds_api.c

@@ -645,7 +645,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
 	QDF_STATUS status;
 	struct cds_config_info *cds_cfg;
 	qdf_device_t qdf_ctx;
-	struct htc_init_info htcInfo;
+	struct htc_init_info htcInfo = { 0 };
 	struct ol_context *ol_ctx;
 	struct hif_opaque_softc *scn;
 	void *HTCHandle;