]> git.ipfire.org Git - thirdparty/linux.git/commit
Octeontx2-af: Fix missing error code in cgx_probe()
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Fri, 10 Oct 2025 20:42:39 +0000 (13:42 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 14 Oct 2025 09:47:31 +0000 (11:47 +0200)
commitc5705a2a4aa35350e504b72a94b5c71c3754833c
treed3590d9f9d5864b20434ecf8a2549ba77424ae93
parent2616222e423398bb374ffcb5d23dea4ba2c3e524
Octeontx2-af: Fix missing error code in cgx_probe()

When CGX fails mapping to NIX, set the error code to -ENODEV, currently
err is zero and that is treated as success path.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/aLAdlCg2_Yv7Y-3h@stanley.mountain/
Fixes: d280233fc866 ("Octeontx2-af: Fix NIX X2P calibration failures")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251010204239.94237-1-harshit.m.mogalapalli@oracle.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c