net: fsl-mc: Incorrect variable used in error path
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 4 Aug 2025 16:56:59 +0000 (17:56 +0100)
committerPeng Fan <peng.fan@nxp.com>
Wed, 27 Aug 2025 07:42:09 +0000 (15:42 +0800)
commit05b11146363039a00bff09c77be077ebdaf1f5d0
tree9c5c438bd9426c18d9a4de75049a68f9acecb407
parent010a4c5c553763430b3e9628ae2c82de3d5f45dd
net: fsl-mc: Incorrect variable used in error path

In mc_fixup_dpc_mac_addr noff is assigned the return value from
fdt_add_subnode so that is the variable that should be passed to
fdt_strerror and returned when negative.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/net/fsl-mc/mc.c