The patch titled ioremap balanced with iounmap for drivers/video/amifb has been added to the -mm tree. Its filename is ioremap-balanced-with-iounmap-for-drivers-video-amifb.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: ioremap balanced with iounmap for drivers/video/amifb From: Amol Lad <amol@xxxxxxxxxxxxxxxxxxx> ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad <amol@xxxxxxxxxxxxxxxxxxx> Cc: "Antonino A. Daplas" <adaplas@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/video/amifb.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff -puN drivers/video/amifb.c~ioremap-balanced-with-iounmap-for-drivers-video-amifb drivers/video/amifb.c --- a/drivers/video/amifb.c~ioremap-balanced-with-iounmap-for-drivers-video-amifb +++ a/drivers/video/amifb.c @@ -2407,10 +2407,10 @@ default_chipset: fb_info.fix.smem_len); if (!videomemory) { printk("amifb: WARNING! unable to map videomem cached writethrough\n"); - videomemory = ZTWO_VADDR(fb_info.fix.smem_start); - } + fb_info.screen_base = (char *)ZTWO_VADDR(fb_info.fix.smem_start); + } else + fb_info.screen_base = (char *)videomemory; - fb_info.screen_base = (char *)videomemory; memset(dummysprite, 0, DUMMYSPRITEMEMSIZE); /* @@ -2453,6 +2453,8 @@ static void amifb_deinit(void) { fb_dealloc_cmap(&fb_info.cmap); chipfree(); + if (videomemory) + iounmap((void*)videomemory); release_mem_region(CUSTOM_PHYSADDR+0xe0, 0x120); custom.dmacon = DMAF_ALL | DMAF_MASTER; } _ Patches currently in -mm which might be from amol@xxxxxxxxxxxxxxxxxxx are ioremap-balanced-with-iounmap-drivers-scsi-zalonc.patch ioremap-balanced-with-iounmap-drivers-scsi-sun3_scsic.patch ioremap-balanced-with-iounmap-drivers-scsi-sun3_scsi_vmec.patch ioremap-balanced-with-iounmap-drivers-scsi-seagatec.patch ioremap-balanced-with-iounmap-drivers-scsi-qlogicptic.patch ioremap-balanced-with-iounmap-drivers-scsi-nsp32c.patch ioremap-balanced-with-iounmap-drivers-scsi-ncr53c8xxc.patch ioremap-balanced-with-iounmap-drivers-scsi-fdomainc.patch ioremap-balanced-with-iounmap-drivers-scsi-amiga7xxc.patch ioremap-balanced-with-iounmap-drivers-scsi-3w-9xxxc.patch ioremap-balanced-with-iounmap-for-drivers-video-virgefb.patch ioremap-balanced-with-iounmap-for-drivers-video-vesafb.patch ioremap-balanced-with-iounmap-for-drivers-video-tridentfb.patch ioremap-balanced-with-iounmap-for-drivers-video-tgafb.patch ioremap-balanced-with-iounmap-for-drivers-video-stifb.patch ioremap-balanced-with-iounmap-for-drivers-video-retz3fb.patch ioremap-balanced-with-iounmap-for-drivers-video-pvr2fb.patch ioremap-balanced-with-iounmap-for-drivers-video-platinumfb.patch ioremap-balanced-with-iounmap-for-drivers-video-offb.patch ioremap-balanced-with-iounmap-for-drivers-video-newport_con.patch ioremap-balanced-with-iounmap-for-drivers-video-macfb.patch ioremap-balanced-with-iounmap-for-drivers-video-hpfb.patch ioremap-balanced-with-iounmap-for-drivers-video-fm2fb.patch ioremap-balanced-with-iounmap-for-drivers-video-ffb.patch ioremap-balanced-with-iounmap-for-drivers-video-cyberfb.patch ioremap-balanced-with-iounmap-for-drivers-video-cirrusfb.patch ioremap-balanced-with-iounmap-for-drivers-video-atyfb_base.patch ioremap-balanced-with-iounmap-for-drivers-video-atafb.patch ioremap-balanced-with-iounmap-for-drivers-video-amifb.patch ioremap-balanced-with-iounmap-for-drivers-video-S3triofb.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html