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 <[email protected]> --- 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 <[email protected]>

