[PATCH] clk: npcm7xx: Fix incorrect kfree

Stephen Boyd sboyd at kernel.org
Thu Oct 19 12:06:16 AEDT 2023


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 at gmx.net>
> ---

Applied to clk-next


More information about the openbmc mailing list