Skip to content

Commit

Permalink
serial: altera_jtaguart: adding iounmap()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Khoroshilov authored and Greg Kroah-Hartman committed May 18, 2017
1 parent 2c0ac5b commit 5c9d6ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/tty/serial/altera_jtaguart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5c9d6ab

Please sign in to comment.