From: Amol Lad ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton --- drivers/video/cyberfb.c | 2 ++ 1 files changed, 2 insertions(+) diff -puN drivers/video/cyberfb.c~ioremap-balanced-with-iounmap-for-drivers-video-cyberfb drivers/video/cyberfb.c --- a/drivers/video/cyberfb.c~ioremap-balanced-with-iounmap-for-drivers-video-cyberfb +++ a/drivers/video/cyberfb.c @@ -1055,6 +1055,8 @@ int __init cyberfb_init(void) if (register_framebuffer(&fb_info) < 0) { DPRINTK("EXIT - register_framebuffer failed\n"); + if (CyberBase) + iounmap(CyberBase); release_mem_region(CyberMem_phys, 0x400000); release_mem_region(CyberRegs_phys, 0x10000); return -EINVAL; _