parisc: Fix vmap memory leak in ioremap()/iounmap()
authorHelge Deller <deller@gmx.de>
Fri, 4 Oct 2019 17:23:37 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:20:00 +0000 (09:20 +0100)
commitca65fe21981b36c4e8350ba9f400fe55d10be5a1
tree026cb00bfc56079c6f7532d63a353c14df267d3a
parent19e2ed7bfabec3c0310f711f258be515bf29d16f
parisc: Fix vmap memory leak in ioremap()/iounmap()

commit 513f7f747e1cba81f28a436911fba0b485878ebd upstream.

Sven noticed that calling ioremap() and iounmap() multiple times leads
to a vmap memory leak:
vmap allocation for size 4198400 failed:
use vmalloc=<size> to increase size

It seems we missed calling vunmap() in iounmap().

Signed-off-by: Helge Deller <deller@gmx.de>
Noticed-by: Sven Schnelle <svens@stackframe.org>
Cc: <stable@vger.kernel.org> # v3.16+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/mm/ioremap.c