diff options
| author | Tony Lindgren <[email protected]> | 2019-05-30 06:55:57 +0000 |
|---|---|---|
| committer | Stephen Boyd <[email protected]> | 2019-06-06 18:19:46 +0000 |
| commit | 41b3588dba6ef4b7995735a97e47ff0aeea6c276 (patch) | |
| tree | 311704dfdd06f2d895d175b7d74148e8c8438e47 /fs/proc/array.c | |
| parent | clk: ti: clkctrl: Fix clkdm_clk handling (diff) | |
| download | kernel-41b3588dba6ef4b7995735a97e47ff0aeea6c276.tar.gz kernel-41b3588dba6ef4b7995735a97e47ff0aeea6c276.zip | |
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 <[email protected]>
Fixes: 88a172526c32 ("clk: ti: add support for clkctrl clocks")
Signed-off-by: Tony Lindgren <[email protected]>
Tested-by: Peter Ujfalusi <[email protected]>
Tested-by: Tomi Valkeinen <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
