Re: [PATCH] clk: davinci: da8xx-cfgchip: Initialize clk_init_data before use

From: David Lechner
Date: Wed Jul 17 2024 - 10:42:34 EST


On 7/17/24 9:12 AM, Bastien Curutchet wrote:
> The flag attribute of the struct clk_init_data isn't initialized before
> the devm_clk_hw_register() call. This can lead to unexpected behavior
> during registration.
>
> Initialize the entire clk_init_data to zero at declaration.
>

Probably should add a Fixes: tag.

> Signed-off-by: Bastien Curutchet <bastien.curutchet@xxxxxxxxxxx>
> ---

Reviewed-by: David Lechner <david@xxxxxxxxxxxxxx>