linux_dsm_epyc7002/drivers/clk/ti
Tony Lindgren 41b3588dba clk: ti: clkctrl: Fix returning uninitialized data
If we do a clk_get() for a clock that does not exists, we have
_ti_omap4_clkctrl_xlate() return uninitialized data if no match
is found. This can be seen in some cases with SLAB_DEBUG enabled:

Unable to handle kernel paging request at virtual address 5a5a5a5a
...
clk_hw_create_clk.part.33
sysc_notifier_call
notifier_call_chain
blocking_notifier_call_chain
device_add

Let's fix this by setting a found flag only when we find a match.

Reported-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Fixes: 88a172526c ("clk: ti: add support for clkctrl clocks")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2019-06-06 11:19:46 -07:00
..
adpll.c clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
apll.c clk: ti: generalize the init sequence of clk_hw_omap clocks 2019-02-15 16:46:22 +02:00
autoidle.c clk: ti: check clock type before doing autoidle ops 2019-02-15 16:47:55 +02:00
clk-2xxx.c
clk-3xxx.c
clk-7xx-compat.c clk: ti: dra7: disable the RNG and TIMER12 clkctrl clocks on HS devices 2019-04-25 10:51:36 -07:00
clk-7xx.c clk: ti: dra7: disable the RNG and TIMER12 clkctrl clocks on HS devices 2019-04-25 10:51:36 -07:00
clk-33xx-compat.c clk: ti: am33xx: rename existing clkctrl data as compat data 2018-10-03 15:02:26 +03:00
clk-33xx.c clk: ti: am33xx: add new clkctrl data for am33xx 2018-10-03 15:02:26 +03:00
clk-43xx-compat.c clk: ti: am43xx: rename existing clkctrl data as compat data 2018-10-03 15:02:26 +03:00
clk-43xx.c clk: ti: am43xx: add new clkctrl data for am43xx 2018-10-03 15:02:27 +03:00
clk-44xx.c
clk-54xx.c
clk-814x.c
clk-816x.c
clk-dra7-atl.c clk: Convert to using %pOFn instead of device_node.name 2018-08-30 09:50:20 -07:00
clk.c clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
clkctrl.c clk: ti: clkctrl: Fix returning uninitialized data 2019-06-06 11:19:46 -07:00
clkt_dflt.c
clkt_dpll.c
clkt_iclk.c
clock.h clk: ti: dra7: disable the RNG and TIMER12 clkctrl clocks on HS devices 2019-04-25 10:51:36 -07:00
clockdomain.c clk: ti: remove usage of CLK_IS_BASIC 2019-02-15 16:46:22 +02:00
composite.c clk: Convert to using %pOFn instead of device_node.name 2018-08-30 09:50:20 -07:00
divider.c Merge branches 'clk-imx', 'clk-samsung', 'clk-ti', 'clk-uniphier-gear' and 'clk-mmp2-lcdc' into clk-next 2019-03-08 10:27:40 -08:00
dpll3xxx.c clk: ti: remove usage of CLK_IS_BASIC 2019-02-15 16:46:22 +02:00
dpll44xx.c
dpll.c clk: ti: generalize the init sequence of clk_hw_omap clocks 2019-02-15 16:46:22 +02:00
fapll.c clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
fixed-factor.c clk: Convert to using %pOFn instead of device_node.name 2018-08-30 09:50:20 -07:00
gate.c clk: ti: generalize the init sequence of clk_hw_omap clocks 2019-02-15 16:46:22 +02:00
interface.c clk: ti: generalize the init sequence of clk_hw_omap clocks 2019-02-15 16:46:22 +02:00
Kconfig
Makefile clk: ti: dra7xx: rename existing clkctrl data as compat data 2018-10-03 15:02:27 +03:00
mux.c clk: ti: remove usage of CLK_IS_BASIC 2019-02-15 16:46:22 +02:00