[PATCH] net: rswitch: Fix error detection

Marek Vasut marek.vasut at mailbox.org
Wed Aug 6 16:37:15 CEST 2025


On 8/6/25 12:19 PM, Andrew Goodbody wrote:
> In rswitch_probe the error detection after the call to devm_clk_get is
> very wrong. It checks the value of ret which is uninitialised at that
> point. Instead it should be using the macros for including errors into
> pointers.
> 
> This issue was found by Smatch.
> 
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>

Reviewed-by: Marek Vasut <marek.vasut+renesas at mailbox.org>

Thanks !


More information about the U-Boot mailing list