kernel_samsung_a53x/drivers/clk/davinci
Bastien Curutchet abcb3e877f clk: davinci: da8xx-cfgchip: Initialize clk_init_data before use
commit a83b22754e351f13fb46596c85f667dc33da71ec upstream.

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@vger.kernel.org
Fixes: 58e1e2d2cd89 ("clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks")
Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Reviewed-by: David Lechner <david@lechnology.com>
Link: https://lore.kernel.org/r/20240718115534.41513-1-bastien.curutchet@bootlin.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:20:14 +01:00
..
da8xx-cfgchip.c clk: davinci: da8xx-cfgchip: Initialize clk_init_data before use 2024-11-23 23:20:14 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pll-da830.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pll-da850.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pll-dm355.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pll-dm365.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pll-dm644x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pll-dm646x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pll.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pll.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psc-da830.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psc-da850.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psc-dm355.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psc-dm365.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psc-dm644x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psc-dm646x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00