[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6081230a-2324-4200-a51d-9b7fefc454f8@lechnology.com>
Date: Wed, 17 Jul 2024 09:22:47 -0500
From: David Lechner <david@...hnology.com>
To: Bastien Curutchet <bastien.curutchet@...tlin.com>,
Michael Turquette <mturquette@...libre.com>, Stephen Boyd <sboyd@...nel.org>
Cc: linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
Herve Codina <herve.codina@...tlin.com>,
Christopher Cordahi <christophercordahi@...ometrics.ca>
Subject: Re: [PATCH] clk: davinci: da8xx-cfgchip: Initialize clk_init_data
before use
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@...tlin.com>
> ---
Reviewed-by: David Lechner <david@...hnology.com>
Powered by blists - more mailing lists