[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210628073729.8449-1-peng.fan@oss.nxp.com>
Date: Mon, 28 Jun 2021 15:37:29 +0800
From: "Peng Fan (OSS)" <peng.fan@....nxp.com>
To: jassisinghbrar@...il.com, shawnguo@...nel.org,
s.hauer@...gutronix.de, o.rempel@...gutronix.de
Cc: kernel@...gutronix.de, festevam@...il.com, aisheng.dong@....com,
linux-imx@....com, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, Peng Fan <peng.fan@....com>,
Dan Carpenter <dan.carpenter@...cle.com>
Subject: [PATCH] mailbox: imx-mailbox: fix uninitialized symbol 'val'
From: Peng Fan <peng.fan@....com>
"val" not initialized on default path, so initialize val to 0 to fix
this issue.
Fixes: 91c8c1fbe498 ("mailbox: imx: add xSR/xCR register array")
Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
Signed-off-by: Peng Fan <peng.fan@....com>
---
drivers/mailbox/imx-mailbox.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c
index bc51bd3c1999..6c6875dd30e7 100644
--- a/drivers/mailbox/imx-mailbox.c
+++ b/drivers/mailbox/imx-mailbox.c
@@ -282,6 +282,7 @@ static irqreturn_t imx_mu_isr(int irq, void *p)
(ctrl & IMX_MU_xCR_GIEn(priv->dcfg->type, cp->idx));
break;
default:
+ val = 0;
break;
}
--
2.30.0
Powered by blists - more mailing lists