From 580726ef14988dd4ee6d7bfeff206e44dc90347d Mon Sep 17 00:00:00 2001 From: nakul kachhwaha Date: Mon, 10 Aug 2020 15:49:57 +0530 Subject: [PATCH] qcacld-3.0: Initialize local variable before use Un-initialized use of boolean variable 'is_host_pdev_id' of struct pdev_params is causing wrong remapping of pdev_id before passing it down to fw with WMI_PDEV_SET_PARAM_CMDID resulting in unexpected behavior in fw. Fixing this by initializing pdev_param, instance of struct pdev_params to zero. Change-Id: I2e6333c966d602cd4dcc72749dca23a48097028a CRs-Fixed: 2747575 --- core/wma/src/wma_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index c9e848d6f2e2..713398f3ed45 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -843,7 +843,7 @@ static void wma_process_cli_set_cmd(tp_wma_handle wma, struct wma_txrx_node *intr = wma->interfaces; struct mac_context *mac = cds_get_context(QDF_MODULE_ID_PE); struct qpower_params *qparams = &intr[vid].config.qpower_params; - struct pdev_params pdev_param; + struct pdev_params pdev_param = {0}; void *soc = cds_get_context(QDF_MODULE_ID_SOC); struct target_psoc_info *tgt_hdl;