]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: Fix vmap memory leak in ioremap()/iounmap()
authorHelge Deller <deller@gmx.de>
Fri, 4 Oct 2019 17:23:37 +0000 (19:23 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 19 Dec 2019 15:58:29 +0000 (15:58 +0000)
commit398a4d5254d5ceb7687b8b4ae7fd42fc0cb0fcf4
tree2817a0d29026ca7d362cebfa6e582b2d54772aff
parent6f2088aaa4bf8df9c35c92dbc9fe381f49b8f62a
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/parisc/mm/ioremap.c