Преглед на файлове

qcacld-3.0: Init local variable cnss_info before using it

Initialize cnss_info in pld_pcie_get_soc_info()
before using it.

CRs-Fixed: 2205420
Change-Id: I4b34fc64ca50c031faa79fd1e272bae24cc0f766
lihual преди 7 години
родител
ревизия
8b9daf255c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      core/pld/src/pld_pcie.c

+ 1 - 1
core/pld/src/pld_pcie.c

@@ -698,7 +698,7 @@ int pld_pcie_get_platform_cap(struct device *dev, struct pld_platform_cap *cap)
 int pld_pcie_get_soc_info(struct device *dev, struct pld_soc_info *info)
 {
 	int ret = 0;
-	struct cnss_soc_info cnss_info;
+	struct cnss_soc_info cnss_info = {0};
 
 	if (info == NULL)
 		return -ENODEV;