All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: 6214/2: fix release_mem_region() size
@ 2025-12-16 17:47 Thomas Fourier
  2025-12-17  7:28 ` Geert Uytterhoeven
  2025-12-29 13:08 ` Andy Shevchenko
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Fourier @ 2025-12-16 17:47 UTC (permalink / raw)
  Cc: Thomas Fourier, Andy Shevchenko, Geert Uytterhoeven,
	Linus Walleij, Russell King, linux-kernel

It seems like, after the request_mem_region(), the corresponding
release_mem_region() must take the same size. This was done
in charlcd_remove() but not in the error path in charlcd_probe().

Fixes: ce8962455e90 ("ARM: 6214/2: driver for the character LCD found in ARM refdesigns")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
---
 drivers/auxdisplay/arm-charlcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/auxdisplay/arm-charlcd.c b/drivers/auxdisplay/arm-charlcd.c
index a7eae99a48f7..4e22882f57c9 100644
--- a/drivers/auxdisplay/arm-charlcd.c
+++ b/drivers/auxdisplay/arm-charlcd.c
@@ -323,7 +323,7 @@ static int __init charlcd_probe(struct platform_device *pdev)
 out_no_irq:
 	iounmap(lcd->virtbase);
 out_no_memregion:
-	release_mem_region(lcd->phybase, SZ_4K);
+	release_mem_region(lcd->phybase, lcd->physize);
 out_no_resource:
 	kfree(lcd);
 	return ret;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-12-29 13:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-16 17:47 [PATCH] ARM: 6214/2: fix release_mem_region() size Thomas Fourier
2025-12-17  7:28 ` Geert Uytterhoeven
2025-12-27 16:01   ` Andy Shevchenko
2025-12-27 18:39     ` Geert Uytterhoeven
2025-12-29 13:08 ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.