mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
auxdisplay: arm-charlcd: fix release_mem_region() size
It seems like, after the request_mem_region(), the corresponding
release_mem_region() must take the same size. This was done
in (now removed due to previous refactoring) charlcd_remove()
but not in the error path in charlcd_probe().
Fixes: ce8962455e ("ARM: 6214/2: driver for the character LCD found in ARM refdesigns")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
8f0b4cce44
commit
b5c23a4d29
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user