Skip to content

Commit 5c9d6ab

Browse files
khoroshilovgregkh
authored andcommitted
serial: altera_jtaguart: adding iounmap()
The driver does ioremap(port->mapbase, ALTERA_JTAGUART_SIZE), but there is no any iounmap(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Acked-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 2c0ac5b commit 5c9d6ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/altera_jtaguart.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ static int altera_jtaguart_remove(struct platform_device *pdev)
478478

479479
port = &altera_jtaguart_ports[i].port;
480480
uart_remove_one_port(&altera_jtaguart_driver, port);
481+
iounmap(port->membase);
481482

482483
return 0;
483484
}

0 commit comments

Comments
 (0)