diff options
author | Amol Lad <amol@verismonetworks.com> | 2006-10-01 02:29:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:32 -0400 |
commit | d9964d5c9067fe58fecb7ba10b2de4771d2005d9 (patch) | |
tree | 9fec2b132168e8b189f1fda323c3187f76a6d56a /drivers | |
parent | f12ad7d59ab77591e4ab2dacd6faa9ea9afffb99 (diff) |
[PATCH] ioremap balanced with iounmap for drivers/serial/8250_gsc.c
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/8250_gsc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/8250_gsc.c b/drivers/serial/8250_gsc.c index 913c71cc0569..1ebe6b585d2d 100644 --- a/drivers/serial/8250_gsc.c +++ b/drivers/serial/8250_gsc.c | |||
@@ -64,6 +64,7 @@ serial_init_chip(struct parisc_device *dev) | |||
64 | err = serial8250_register_port(&port); | 64 | err = serial8250_register_port(&port); |
65 | if (err < 0) { | 65 | if (err < 0) { |
66 | printk(KERN_WARNING "serial8250_register_port returned error %d\n", err); | 66 | printk(KERN_WARNING "serial8250_register_port returned error %d\n", err); |
67 | iounmap(port.membase); | ||
67 | return err; | 68 | return err; |
68 | } | 69 | } |
69 | 70 | ||