Skip to contentSkip to conversation

ASoC: amd: acp: uninitialized variable in i2s_irq_handler()

PATCH In review Dan Carpenter 2 participants 2 messages Jul 27, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: amd: acp: uninitialized variable in i2s_irq_handler()

The "ext_intr_stat1" is used without being initialized.

Fixes 93f53881473c ("ASoC: amd: acp: Modify local variables name to generic")
---
 sound/soc/amd/acp/acp-platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/amd/acp/acp-platform.c +1 -1
index 10730d33c3b0..f561d39b33e2 100644
@@ -100,7 +100,7 @@ static irqreturn_t i2s_irq_handler(int irq, void *data)
 		return IRQ_NONE;
 
 	if (adata->rsrc->no_of_ctrls == 2)
-		ext_intr_stat = readl(ACP_EXTERNAL_INTR_STAT(adata, (rsrc->irqp_used - 1)));
+		ext_intr_stat1 = readl(ACP_EXTERNAL_INTR_STAT(adata, (rsrc->irqp_used - 1)));
 
 	ext_intr_stat = readl(ACP_EXTERNAL_INTR_STAT(adata, rsrc->irqp_used));
 
Signature · 1 line
2.35.1
maintainer
#1 lore raw
Quoted 1 line · Dan Carpenter

The "ext_intr_stat1" is used without being initialized.

Someone submitted a patch for this yesterday.