Re: [PATCH] clk: npcm7xx: Fix incorrect kfree

From: Stephen Boyd
Date: Wed Oct 18 2023 - 21:06:24 EST


Quoting Jonathan Neuschäfer (2023-09-23 06:31:27)
> The corresponding allocation is:
>
> > npcm7xx_clk_data = kzalloc(struct_size(npcm7xx_clk_data, hws,
> > NPCM7XX_NUM_CLOCKS), GFP_KERNEL);
>
> ... so, kfree should be applied to npcm7xx_clk_data, not
> npcm7xx_clk_data->hws.
>
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@xxxxxxx>
> ---

Applied to clk-next