Re: [PATCH] kho: free chunks using free_page() instead of kfree()

From: Pasha Tatashin

Date: Tue Nov 18 2025 - 13:39:46 EST


On Tue, Nov 18, 2025 at 1:22 PM Pratyush Yadav <pratyush@xxxxxxxxxx> wrote:
>
> Before commit fa759cd75bce5 ("kho: allocate metadata directly from the
> buddy allocator"), the chunks were allocated from the slab allocator
> using kzalloc(). Those were rightly freed using kfree().
>
> When the commit switched to using the buddy allocator directly, it
> missed updating kho_mem_ser_free() to use free_page() instead of
> kfree().
>
> Fixes: fa759cd75bce5 ("kho: allocate metadata directly from the buddy allocator")
> Signed-off-by: Pratyush Yadav <pratyush@xxxxxxxxxx>

Thank you for finding and fixing this issue.

Reviewed-by: Pasha Tatashin <pasha.tatashin@xxxxxxxxxx>