[PATCH 0/3] fs: ext4fs: Fix some issues found by Smatch
Andrew Goodbody
andrew.goodbody at linaro.org
Fri Jul 4 14:32:41 CEST 2025
Smatch reported some issues in the ext4fs code. This includes a
suggestion to use an unwind goto, to not negate a return value and to
ensure that a NULL check happens before the pointer is dereferenced.
Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
---
Andrew Goodbody (3):
fs: ext4fs: Do not negate error before returning it
fs: ext4fs: Use unwind goto to free memory on error
fs: ext4fs: Perform NULL check before dereference
fs/ext4/ext4_common.c | 10 ++++++----
fs/ext4/ext4_write.c | 6 +++---
fs/ext4/ext4fs.c | 2 +-
3 files changed, 10 insertions(+), 8 deletions(-)
---
base-commit: 7027b445cc0bfb86204ecb1f1fe596f5895048d9
change-id: 20250704-ext4fs_fix-70936d5a3e59
Best regards,
--
Andrew Goodbody <andrew.goodbody at linaro.org>
More information about the U-Boot
mailing list