OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bedb0b
)
[PATCH] ioremap balanced with iounmap for drivers/video/fm2fb
author
Amol Lad
<amol@verismonetworks.com>
Fri, 8 Dec 2006 10:40:11 +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/fm2fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fm2fb.c
b/drivers/video/fm2fb.c
index
998374c
..
70ff55b
100644
(file)
--- 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;