memblock: use kfree() to release kmalloced memblock regions
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 17 Feb 2022 14:53:27 +0000 (22:53 +0800)
committerMike Rapoport <rppt@linux.ibm.com>
Sun, 20 Feb 2022 06:45:39 +0000 (08:45 +0200)
commitc94afc46cae7ad41b2ad6a99368147879f4b0e56
treecfd7113c63e6c9f59f933e7c47de51ad4cbef33f
parent754e0b0e35608ed5206d6a67a791563c631cec07
memblock: use kfree() to release kmalloced memblock regions

memblock.{reserved,memory}.regions may be allocated using kmalloc() in
memblock_double_array(). Use kfree() to release these kmalloced regions
indicated by memblock_{reserved,memory}_in_slab.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Fixes: 3010f876500f ("mm: discard memblock data later")
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
mm/memblock.c