[PATCH 0/4] net: mvpp2: Fix some Smatch reported issues
Andrew Goodbody
andrew.goodbody at linaro.org
Tue Aug 5 16:18:15 CEST 2025
Smatch reported some issues with this driver, the use of unsigned
variables and testing for being negative, should return -ENOMEM for a
memory allocation failure.
Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
---
Andrew Goodbody (4):
net: mvpp2: Fix impossible test
net: mvpp2: Return -ENOMEM for failed alloc
net: mvpp2: Cannot test unsigned variable to be negative
net: mvpp2: Use field just assigned in error test
drivers/net/mvpp2.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
base-commit: 007610da2cca405ea7739fc120d90085be4b6ac2
change-id: 20250805-net_mvpp2-cc9152c3de3b
Best regards,
--
Andrew Goodbody <andrew.goodbody at linaro.org>
More information about the U-Boot
mailing list