diff options
author | Stephen Boyd <sboyd@kernel.org> | 2019-04-23 10:46:51 -0700 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-04-23 10:46:51 -0700 |
commit | e4818d615b58f145ace70fefa43aeae8611b55a1 (patch) | |
tree | 22f2e89c509ea561c2c706816f4aab6cced56f82 /drivers/base | |
parent | ecbf3f1795fda56122632c1d024cfd0d3f4fe353 (diff) |
clk: fixed-factor: Initialize clk_init_data on stack
This structure can be full of junk from the stack if we don't initialize
it. The clk framework tests clk_init_data::parent_names for non-NULL and
then considers that as the parent name pointer, but if it's full of junk
then we'll try to deref a bad pointer and oops the system. Let's
initialize the structure so that only clk_init_data::parent_names or
clk_init_data::parent_data is set, and not both.
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Tony Lindgren <tony@atomide.com>
Fixes: ecbf3f1795fd ("clk: fixed-factor: Let clk framework find parent")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions