Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54886c97 authored by Mike Rapoport's avatar Mike Rapoport Committed by Greg Kroah-Hartman
Browse files

percpu: stop leaking bitmap metadata blocks



commit 6685b357 upstream.

The commit ca460b3c ("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: ca460b3c ("percpu: introduce bitmap metadata blocks")
Signed-off-by: default avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6c8f4bab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1208,6 +1208,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);