Re: [PATCH] clk: gemini: Variable "val" in function gemini_clk_probe() could be uninitialized

2019-02-06 Thread Stephen Boyd
Quoting Yizhuo (2019-01-26 21:10:12) > In function gemini_clk_probe(), local variable "val" could > be uninitialized if function regmap_read() returns -EINVAL. > However, it will be used as index in the later context, which > could potentially be unsafe. Ok. How did you find this? Any pointers?

[PATCH] clk: gemini: Variable "val" in function gemini_clk_probe() could be uninitialized

2019-01-26 Thread Yizhuo
In function gemini_clk_probe(), local variable "val" could be uninitialized if function regmap_read() returns -EINVAL. However, it will be used as index in the later context, which could potentially be unsafe. Signed-off-by: Yizhuo --- drivers/clk/clk-gemini.c | 10 -- 1 file changed, 8