From 8b9daf255c91cfd5f6978b274caa72e674233754 Mon Sep 17 00:00:00 2001 From: lihual Date: Mon, 2 Apr 2018 15:18:54 +0800 Subject: [PATCH] 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 --- core/pld/src/pld_pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pld/src/pld_pcie.c b/core/pld/src/pld_pcie.c index 7e108f777143..10b0e198dfc6 100644 --- a/core/pld/src/pld_pcie.c +++ b/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;