[PATCH 0/2] clk: versaclock: Fix two issues found by Smatch

Andrew Goodbody andrew.goodbody at linaro.org
Wed Jul 23 17:54:06 CEST 2025


Should return value calculated by ERR_PTR as calling code attempts to
check for it.
Also do not dereference a pointer that could be an error pointer before
checking it with IS_ERR.

Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
---
Andrew Goodbody (2):
      clk: versaclock: return value calculated by ERR_PTR
      clk: versaclock: Use IS_ERR check before dereference

 drivers/clk/clk_versaclock.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
base-commit: bd0ade7d090a334b3986936d63a34001d99722ad
change-id: 20250723-clk_versaclock-77e9ddbd4a51

Best regards,
-- 
Andrew Goodbody <andrew.goodbody at linaro.org>



More information about the U-Boot mailing list