From: Alexey Khoroshilov Date: Fri, 12 May 2017 21:36:22 +0000 (+0300) Subject: serial: altera_jtaguart: adding iounmap() X-Git-Tag: v4.12-rc3~2^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c9d6abed9e0;p=thirdparty%2Flinux.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 18e3f8342b855..0475f5d261cef 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; }