]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ioremap balanced with iounmap for drivers/serial/8250_gsc.c
authorAmol Lad <amol@verismonetworks.com>
Sun, 1 Oct 2006 06:29:21 +0000 (23:29 -0700)
committerLinus 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

index 913c71cc056939b0295a78c1a6f3a644fb9aa2b3..1ebe6b585d2d57d3c44b4d52bcceebb3b5fdfd78 100644 (file)
@@ -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;
        }