parisc: Fix vmap memory leak in ioremap()/iounmap()
authorHelge Deller <deller@gmx.de>
Fri, 4 Oct 2019 17:23:37 +0000 (19:23 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 14 Oct 2019 19:44:17 +0000 (21:44 +0200)
commit513f7f747e1cba81f28a436911fba0b485878ebd
tree1d6d3351b0fb65e2f262645a9f5514bddad572f9
parent0703ad217ebd441dd730af71f8d9cdbf144fbc03
parisc: Fix vmap memory leak in ioremap()/iounmap()

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+
arch/parisc/mm/ioremap.c