From: Amol Lad Date: Fri, 8 Dec 2006 10:40:11 +0000 (-0800) Subject: [PATCH] ioremap balanced with iounmap for drivers/video/fm2fb X-Git-Tag: v2.6.20-rc1~34^2~104 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1b3349fa448ce41eda5ae0e6d4dc52837d14ad11;p=linux-2.6-omap-h63xx.git [PATCH] ioremap balanced with iounmap for drivers/video/fm2fb 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/fm2fb.c b/drivers/video/fm2fb.c index 998374cfae6..70ff55b1459 100644 --- a/drivers/video/fm2fb.c +++ b/drivers/video/fm2fb.c @@ -283,6 +283,7 @@ static int __devinit fm2fb_probe(struct zorro_dev *z, if (register_framebuffer(info) < 0) { fb_dealloc_cmap(&info->cmap); + iounmap(info->screen_base); framebuffer_release(info); zorro_release_device(z); return -EINVAL;