Skip to content

Commit b4916cb

Browse files
JoonsooKimhtejun
authored andcommitted
percpu: make pcpu_free_chunk() use pcpu_mem_free() instead of kfree()
commit 099a19d('allow limited allocation before slab is online') made pcpu_alloc_chunk() use pcpu_mem_zalloc() but forgot to update pcpu_free_chunk() accordingly. This doesn't cause any immediate problema, but fix it for consistency. tj: commit message updated Signed-off-by: Joonsoo Kim <js1304@gmail.com> Cc: Christoph Lameter <cl@linux.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 6b0cb4e commit b4916cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/percpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ static void pcpu_free_chunk(struct pcpu_chunk *chunk)
631631
if (!chunk)
632632
return;
633633
pcpu_mem_free(chunk->map, chunk->map_alloc * sizeof(chunk->map[0]));
634-
kfree(chunk);
634+
pcpu_mem_free(chunk, pcpu_chunk_struct_size);
635635
}
636636

637637
/*

0 commit comments

Comments
 (0)