Re: [PATCH 1/2] clk: s2mps11: Fix possible NULL pointer dereference

2014-03-24 Thread Mike Turquette
Quoting Krzysztof Kozlowski (2014-03-21 05:18:17) > If parent device does not have of_node set the s2mps11_clk_parse_dt() > returned NULL. This NULL was later passed to of_clk_add_provider() which > dereferenced it in pr_debug() call. > > Signed-off-by: Krzysztof Kozlowski I've taken both of the

[PATCH 1/2] clk: s2mps11: Fix possible NULL pointer dereference

2014-03-21 Thread Krzysztof Kozlowski
If parent device does not have of_node set the s2mps11_clk_parse_dt() returned NULL. This NULL was later passed to of_clk_add_provider() which dereferenced it in pr_debug() call. Signed-off-by: Krzysztof Kozlowski Cc: --- drivers/clk/clk-s2mps11.c |2 +- 1 file changed, 1 insertion(+), 1 de