From: Amol Lad Date: Fri, 8 Dec 2006 10:40:02 +0000 (-0800) Subject: [PATCH] ioremap balanced with iounmap for drivers/video/vesafb X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b88a57cc645c59a3652f391f8069b15d42ac0762;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [PATCH] ioremap balanced with iounmap for drivers/video/vesafb 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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/vesafb.c b/drivers/video/vesafb.c index 2196448396ec..638ee3745401 100644 --- a/drivers/video/vesafb.c +++ b/drivers/video/vesafb.c @@ -456,6 +456,8 @@ static int __init vesafb_probe(struct platform_device *dev) info->node, info->fix.id); return 0; err: + if (info->screen_base) + iounmap(info->screen_base); framebuffer_release(info); release_mem_region(vesafb_fix.smem_start, size_total); return err;