net: fec_mxc: Set error code on error exit
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 5 Aug 2025 11:23:06 +0000 (12:23 +0100)
committerFabio Estevam <festevam@gmail.com>
Thu, 7 Aug 2025 11:16:18 +0000 (08:16 -0300)
commit53158c8cf269f05c2d25769024cb0c363aac5e7a
tree56eaa968599c970e97dd2c284f567ed8dedbf496
parentd011462eea859dde74431f1eb8b8d9cea8ebf005
net: fec_mxc: Set error code on error exit

In fecmxc_probe if a timeout is detected when resetting the chip no
error code is set before taking the error exit. This could lead to a
silent failure. Instead set an error code.

This issue was found by Smatch.

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