projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef26dd7
)
[PATCH] ioremap balanced with iounmap for drivers/video/vesafb
author
Amol Lad
<amol@verismonetworks.com>
Fri, 8 Dec 2006 10:40:02 +0000
(
02:40
-0800)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:29:04 +0000
(08:29 -0800)
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>
drivers/video/vesafb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/vesafb.c
b/drivers/video/vesafb.c
index 2196448396ec3b90e4f127d4a5179e5cfd35befe..638ee3745401d2102f182adc279c9da137c01702 100644
(file)
--- 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;