Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
8b9daf255c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;