[PATCH 0/5] net: fsl: Fix some Smatch reports
Andrew Goodbody
andrew.goodbody at linaro.org
Mon Aug 4 18:56:54 CEST 2025
Smatch reported some issues with this driver. Firstly a copy/paste error
resulting in the wrong return value being attempted to be used. Secondly
some variables being dereferenced before being NULL checked. Lastly
another case of the wrong variable being returned on the error path.
Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
---
Andrew Goodbody (5):
net: fsl_enetc: Fix copy/paste error
net: fsl-mc: NULL check dflt_dpio before dereference
net: fsl-mc: NULL check dflt_dpbp before dereference
net: fsl-mc: NULL check dflt_dpni before dereference
net: fsl-mc: Incorrect variable used in error path
drivers/net/fsl-mc/mc.c | 28 ++++++++++++++++++++--------
drivers/net/fsl_enetc_netc_blk_ctrl.c | 2 +-
2 files changed, 21 insertions(+), 9 deletions(-)
---
base-commit: ae5711f881100f856ead1e76832c32b92dba93c7
change-id: 20250804-fsl_enetc-30b45818f86c
Best regards,
--
Andrew Goodbody <andrew.goodbody at linaro.org>
More information about the U-Boot
mailing list