[PATCH 0/3] fs: ubifs: Address some Smatch issues
Andrew Goodbody
andrew.goodbody at linaro.org
Fri Oct 3 12:42:49 CEST 2025
Smatch reported some issues in this driver including a possible memory
leak, not detecting an error pointer as a return value and dereferencing
a possibly NULL pointer.
Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
---
Andrew Goodbody (3):
fs: ubifs: Ensure buf is freed before return
fs: ubifs: Need to check return for being an error pointer
fs: ubifs: Fix and rework error handling in ubifs_finddir
fs/ubifs/lprops.c | 6 ++++--
fs/ubifs/super.c | 2 +-
fs/ubifs/ubifs.c | 16 ++++++++--------
3 files changed, 13 insertions(+), 11 deletions(-)
---
base-commit: da47ddebd16a7e1047da8537fbf01558d2a89fcf
change-id: 20251003-fs_ubifs-d5859daff957
Best regards,
--
Andrew Goodbody <andrew.goodbody at linaro.org>
More information about the U-Boot
mailing list