Files
linux/drivers
Tony Lindgren cf4deb2d4d clk: ti: clkctrl: Fix returning uninitialized data
[ Upstream commit 41b3588dba ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-21 09:03:04 +02:00
..
2019-05-31 06:46:31 -07:00
2019-06-22 08:15:16 +02:00
2019-05-14 19:17:53 +02:00
2019-06-19 08:18:06 +02:00
2018-12-21 14:15:17 +01:00
2019-07-10 09:53:45 +02:00
2018-11-13 11:08:51 -08:00
2018-11-27 16:13:09 +01:00
2019-04-27 09:36:31 +02:00
2019-05-31 06:46:14 -07:00