From b88a57cc645c59a3652f391f8069b15d42ac0762 Mon Sep 17 00:00:00 2001 From: Amol Lad Date: Fri, 8 Dec 2006 02:40:02 -0800 Subject: [PATCH] [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 --- drivers/video/vesafb.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.20.1