summaryrefslogtreecommitdiff
path: root/drivers/firmware
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2019-05-30 09:55:57 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-21 10:01:54 +0300
commitbfa9a4107def2aec5658cf66f160cc9aac32dfbe (patch)
tree4fc10e2ad8c6596a69781016a6a9f04834c13bbb /drivers/firmware
parente8f05b163958982af2e3a0b1cc6477d4c3bc904f (diff)
downloadlinux-bfa9a4107def2aec5658cf66f160cc9aac32dfbe.tar.xz
clk: ti: clkctrl: Fix returning uninitialized data
[ Upstream commit 41b3588dba6ef4b7995735a97e47ff0aeea6c276 ] 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: 88a172526c32 ("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>
Diffstat (limited to 'drivers/firmware')
0 files changed, 0 insertions, 0 deletions