Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1640769
| From | Alexey Khoroshilov <khoroshilov@ispras.ru> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] serial: altera_jtaguart: adding iounmap() |
| Date | 2017-05-12 23:40 +0200 |
| Message-ID | <tGqs1-2k3-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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> --- drivers/tty/serial/altera_jtaguart.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] serial: altera_jtaguart: adding iounmap() Alexey Khoroshilov <khoroshilov@ispras.ru> - 2017-05-12 23:40 +0200 Re: [PATCH] serial: altera_jtaguart: adding iounmap() Tobias Klauser <tklauser@distanz.ch> - 2017-05-13 13:10 +0200
csiph-web