diff options
| author | Andrew Goodbody <[email protected]> | 2025-08-06 18:03:26 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-08-15 14:17:30 -0600 |
| commit | fc96c1de5b719561db15259009a9ef22e671ee3d (patch) | |
| tree | ef6198dd72dba131051aecb42515028b738d2a93 /drivers/phy | |
| parent | 26d9bd1ccd6b344d1cc9ddb3d50981b106fed3b8 (diff) | |
phy: ti: j721e-wiz: Set error code before goto
In j721e_wiz_probe the test for too many lanes jumps to the error exit
path without assigning an error code which could lead to calling code
silently ignoring the failure. Set the error code.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <[email protected]>
Diffstat (limited to 'drivers/phy')
| -rw-r--r-- | drivers/phy/ti/phy-j721e-wiz.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c index c69a342e2b4..6e2d4bc2b05 100644 --- a/drivers/phy/ti/phy-j721e-wiz.c +++ b/drivers/phy/ti/phy-j721e-wiz.c @@ -1201,6 +1201,7 @@ static int j721e_wiz_probe(struct udevice *dev) if (num_lanes > WIZ_MAX_LANES) { dev_err(dev, "Cannot support %d lanes\n", num_lanes); + rc = -EINVAL; goto err_addr_to_resource; } |
