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:
f12ad7d
)
[PATCH] ioremap balanced with iounmap for drivers/serial/8250_gsc.c
author
Amol Lad
<amol@verismonetworks.com>
Sun, 1 Oct 2006 06:29:21 +0000
(23:29 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:32 +0000
(
00:39
-0700)
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: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/serial/8250_gsc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/serial/8250_gsc.c
b/drivers/serial/8250_gsc.c
index 913c71cc056939b0295a78c1a6f3a644fb9aa2b3..1ebe6b585d2d57d3c44b4d52bcceebb3b5fdfd78 100644
(file)
--- a/
drivers/serial/8250_gsc.c
+++ b/
drivers/serial/8250_gsc.c
@@
-64,6
+64,7
@@
serial_init_chip(struct parisc_device *dev)
err = serial8250_register_port(&port);
if (err < 0) {
printk(KERN_WARNING "serial8250_register_port returned error %d\n", err);
+ iounmap(port.membase);
return err;
}