Re: [PATCHv2] EDAC/i7core: Use kzalloc_flex()
From: Luck, Tony
Date: Fri Mar 13 2026 - 18:20:38 EST
On Fri, Mar 13, 2026 at 02:59:00PM -0700, Rosen Penev wrote:
> Simplifies allocations by using a flexible array member in this struct.
>
> Add __counted_by to get extra runtime analysis. Move counting variable
> assignment to right after allocation as required by __counted_by.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@xxxxxxxxx>
Merged into RAS tree. Will go to Linus in v7.1 merge window.
Thanks
-Tony