WSL2-Linux-Kernel/drivers/clk/davinci
Bastien Curutchet 2ede59d7a7 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: 58e1e2d2cd ("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-08-19 05:45:16 +02:00
..
Makefile clk: davinci: New driver for TI DA8XX CFGCHIP clocks 2018-03-20 10:16:26 -07:00
da8xx-cfgchip.c clk: davinci: da8xx-cfgchip: Initialize clk_init_data before use 2024-08-19 05:45:16 +02:00
pll-da830.c clk: davinci: pll: allow dev == NULL 2018-05-30 12:48:35 -07:00
pll-da850.c clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
pll-dm355.c clk: davinci: pll: allow dev == NULL 2018-05-30 12:48:35 -07:00
pll-dm365.c clk: davinci: pll: allow dev == NULL 2018-05-30 12:48:35 -07:00
pll-dm644x.c clk: davinci: pll: allow dev == NULL 2018-05-30 12:48:35 -07:00
pll-dm646x.c clk: davinci: pll: allow dev == NULL 2018-05-30 12:48:35 -07:00
pll.c clk: davinci: Use the correct size when allocating memory 2020-08-18 20:08:23 -07:00
pll.h clk: davinci: Use the correct style for SPDX License Identifier 2019-05-01 13:01:11 -07:00
psc-da830.c clk: davinci: psc-da830: add a lookup entry for aemif clock 2018-07-06 12:34:54 -05:00
psc-da850.c clk: davinci: psc-da850: remove the 'davinci_nand.0" lookup 2018-07-06 12:33:57 -05:00
psc-dm355.c clk: davinci: psc: allow for dev == NULL 2018-05-30 12:48:44 -07:00
psc-dm365.c clk: davinci: psc-dm365: use two lookup entries for the aemif clock 2018-07-06 12:34:54 -05:00
psc-dm644x.c clk: davinci: psc-dm644x: use two lookup entries for the aemif clock 2018-07-06 12:34:54 -05:00
psc-dm646x.c clk: davinci: psc-dm646x: use two lookup entries for the aemif clock 2018-07-06 12:34:54 -05:00
psc.c clk: davinci: use devm_platform_ioremap_resource() to simplify code 2019-10-16 16:17:14 -07:00
psc.h clk: davinci: Use the correct style for SPDX License Identifier 2019-05-01 13:01:11 -07:00