[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220308094519.1816649-3-nava.manne@xilinx.com>
Date: Tue, 8 Mar 2022 15:15:15 +0530
From: Nava kishore Manne <nava.manne@...inx.com>
To: <mdf@...nel.org>, <hao.wu@...el.com>, <yilun.xu@...el.com>,
<trix@...hat.com>, <michal.simek@...inx.com>,
<linux-fpga@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
CC: Nava kishore Manne <nava.manne@...inx.com>
Subject: [PATCH 2/6] fpga: zynqmp: Initialized variables before using it
This patch initialized variables with the proper value.
Addresses-Coverity: "uninit_use: Using uninitialized value"
Signed-off-by: Nava kishore Manne <nava.manne@...inx.com>
---
drivers/fpga/zynqmp-fpga.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/fpga/zynqmp-fpga.c b/drivers/fpga/zynqmp-fpga.c
index c60f20949c47..e931d69819a7 100644
--- a/drivers/fpga/zynqmp-fpga.c
+++ b/drivers/fpga/zynqmp-fpga.c
@@ -41,7 +41,7 @@ static int zynqmp_fpga_ops_write(struct fpga_manager *mgr,
const char *buf, size_t size)
{
struct zynqmp_fpga_priv *priv;
- dma_addr_t dma_addr;
+ dma_addr_t dma_addr = 0;
u32 eemi_flags = 0;
char *kbuf;
int ret;
--
2.25.1
Powered by blists - more mailing lists