Subject: Re: [PATCH] clk: visconti: pll: use kzalloc_flex

From: Brian Masney <[email-masked]>
Date: Mon, 30 Mar 2026 09:07:45 -0400

On Wed, Mar 25, 2026 at 09:23:17PM -0700, Rosen Penev wrote:
> Simplify allocation by using a flexible array member and kzalloc_flex.
> 
> Add __counted_by for extra runtime analysis. Assign after allocation as
> required by __counted_by.
> 
> Signed-off-by: Rosen Penev <[email-masked]>

Reviewed-by: Brian Masney <[email-masked]>

Note: Sashiko reported a separate issue related to the struct clk_init_data
not fully initialized to zero, and parent_data and parent_hws fields are
left containing stack garbage.

https://sashiko.dev/#/patchset/20260326042317.122536-1-rosenp%40gmail.com

I'll post a fix for this.

Brian