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-Tag: v2.6.20-rc1~34^2~114 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b88a57cc645c59a3652f391f8069b15d42ac0762;p=linux-2.6-omap-h63xx.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 2196448396e..638ee374540 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;