diff options
author | Amol Lad <amol@verismonetworks.com> | 2006-12-08 05:40:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:29:04 -0500 |
commit | b88a57cc645c59a3652f391f8069b15d42ac0762 (patch) | |
tree | 262693efd2592016afa22ccc637952c7f39d9ef2 /drivers/video/vesafb.c | |
parent | ef26dd7ffa305382aabcd95fd574d01808a65c41 (diff) |
[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 <amol@verismonetworks.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/vesafb.c')
-rw-r--r-- | drivers/video/vesafb.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
456 | info->node, info->fix.id); | 456 | info->node, info->fix.id); |
457 | return 0; | 457 | return 0; |
458 | err: | 458 | err: |
459 | if (info->screen_base) | ||
460 | iounmap(info->screen_base); | ||
459 | framebuffer_release(info); | 461 | framebuffer_release(info); |
460 | release_mem_region(vesafb_fix.smem_start, size_total); | 462 | release_mem_region(vesafb_fix.smem_start, size_total); |
461 | return err; | 463 | return err; |