mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
[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>
This commit is contained in:
parent
f12ad7d59a
commit
d9964d5c90
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue