Skip to content
Commit 238e1405 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mike Turquette
Browse files

clk: s2mps11: Fix possible NULL pointer dereference



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: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent c115b13b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment