diff options
author | Mike Rapoport <rppt@linux.vnet.ibm.com> | 2018-10-07 11:31:51 +0300 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2018-10-08 00:50:12 +0300 |
commit | 6685b357363bfe295e3ae73665014db4aed62c58 (patch) | |
tree | 0e8f6b92d206913d9d666706df9479dec9e1bd23 /mm | |
parent | 0238df646e6224016a45505d2c111a24669ebe21 (diff) | |
download | linux-6685b357363bfe295e3ae73665014db4aed62c58.tar.xz |
percpu: stop leaking bitmap metadata blocks
The commit ca460b3c9627 ("percpu: introduce bitmap metadata blocks")
introduced bitmap metadata blocks. These metadata blocks are allocated
whenever a new chunk is created, but they are never freed. Fix it.
Fixes: ca460b3c9627 ("percpu: introduce bitmap metadata blocks")
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/percpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index a749d4d96e3e..4b90682623e9 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -1212,6 +1212,7 @@ static void pcpu_free_chunk(struct pcpu_chunk *chunk) { if (!chunk) return; + pcpu_mem_free(chunk->md_blocks); pcpu_mem_free(chunk->bound_map); pcpu_mem_free(chunk->alloc_map); pcpu_mem_free(chunk); |