lkml.org 
[lkml]   [2023]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] clk: npcm7xx: Fix incorrect kfree
From
Date
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@gmx.net>
> ---

Applied to clk-next

\
 
 \ /
  Last update: 2023-10-19 03:07    [W:0.056 / U:0.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site