Skip to contentSkip to conversation

mtd: onenand: Pass correct pointer to IRQ handler

PATCH Applied Dan Carpenter 2 participants 2 messages Nov 1, 2025 – Nov 3, 2025

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

PATCH 1/1 mtd: onenand: Pass correct pointer to IRQ handler

This was supposed to pass "onenand" instead of "&onenand" with the ampersand. Passing a random stack address which will be gone when the function ends makes no sense. However the good thing is that the pointer is never used, so this doesn't cause a problem at run time.

Fixes e23abf4b7743 ("mtd: OneNAND: S5PC110: Implement DMA interrupt method")
---
 drivers/mtd/nand/onenand/onenand_samsung.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/onenand/onenand_samsung.c +1 -1
index f37a6138e461..6d6aa709a21f 100644
@@ -906,7 +906,7 @@ static int s3c_onenand_probe(struct platform_device *pdev)
 			err = devm_request_irq(&pdev->dev, r->start,
 					       s5pc110_onenand_irq,
 					       IRQF_SHARED, "onenand",
-					       &onenand);
+					       onenand);
 			if (err) {
 				dev_err(&pdev->dev, "failed to get irq\n");
 				return err;
Signature · 1 line
2.51.0
maintainer Applied
#1 lore raw
Quoted 6 lines · Dan Carpenter

This was supposed to pass "onenand" instead of "&onenand" with the ampersand. Passing a random stack address which will be gone when the function ends makes no sense. However the good thing is that the pointer is never used, so this doesn't cause a problem at run time.

Applied to mtd/fixes, thanks!

[1/1] mtd: onenand: Pass correct pointer to IRQ handler

      commit: 97315e7c901a1de60e8ca9b11e0e96d0f9253e18

Patche(s) should be available on mtd/linux.git and will be part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl