From: Alexey Khoroshilov Date: Fri, 12 May 2017 21:36:22 +0000 (+0300) Subject: serial: altera_jtaguart: adding iounmap() X-Git-Tag: MMI-PSA29.97-13-9~5519^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5c9d6abed9e0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Acked-by: Tobias Klauser Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/altera_jtaguart.c b/drivers/tty/serial/altera_jtaguart.c index 18e3f8342b85..0475f5d261ce 100644 --- a/drivers/tty/serial/altera_jtaguart.c +++ b/drivers/tty/serial/altera_jtaguart.c @@ -478,6 +478,7 @@ static int altera_jtaguart_remove(struct platform_device *pdev) port = &altera_jtaguart_ports[i].port; uart_remove_one_port(&altera_jtaguart_driver, port); + iounmap(port->membase); return 0; }