linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mailbox: imx-mailbox: fix uninitialized symbol 'val'
@ 2021-06-28  7:37 Peng Fan (OSS)
  0 siblings, 0 replies; only message in thread
From: Peng Fan (OSS) @ 2021-06-28  7:37 UTC (permalink / raw)
  To: jassisinghbrar, shawnguo, s.hauer, o.rempel
  Cc: kernel, festevam, aisheng.dong, linux-imx, linux-arm-kernel,
	linux-kernel, Peng Fan, Dan Carpenter

From: Peng Fan <peng.fan@nxp.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@oracle.com>
Signed-off-by: Peng Fan <peng.fan@nxp.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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-28  7:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28  7:37 [PATCH] mailbox: imx-mailbox: fix uninitialized symbol 'val' Peng Fan (OSS)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).