[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1551a3c354c3aef60f6cd27edd169273.sboyd@kernel.org>
Date: Thu, 18 Jul 2024 13:33:04 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: Bastien Curutchet <bastien.curutchet@...tlin.com>, David Lechner <david@...hnology.com>, Michael Turquette <mturquette@...libre.com>
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>, Bastien Curutchet <bastien.curutchet@...tlin.com>, stable@...r.kernel.org
Subject: Re: [PATCH v2] clk: davinci: da8xx-cfgchip: Initialize clk_init_data before use
Quoting Bastien Curutchet (2024-07-18 04:55:34)
> 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.
>
> Cc: stable@...r.kernel.org
> Fixes: 58e1e2d2cd89 ("clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks")
> Signed-off-by: Bastien Curutchet <bastien.curutchet@...tlin.com>
> Reviewed-by: David Lechner <david@...hnology.com>
> ---
Applied to clk-next
Powered by blists - more mailing lists