clk: versaclock: Use IS_ERR check before dereference
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Wed, 23 Jul 2025 15:54:08 +0000 (16:54 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 28 Oct 2025 15:48:28 +0000 (09:48 -0600)
commit2a13b59ed4317ec4483d1502d9db161f46985a32
tree33da4a034ca0e92454492a41a77d75ba6199ea58
parent6f48f6f2a2df05bd7663917b694a4d881998f6c5
clk: versaclock: Use IS_ERR check before dereference

In versaclock_probe vc5->pin_xin may be an error pointer so need to
check with IS_ERR before attempting to dereference it.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/clk/clk_versaclock.c