linux-yocto/fs/ntfs3
Andrey Vatoropin 701340a25b fs/ntfs3: handle hdr_first_de() return value
[ Upstream commit af5cab0e5b ]

The hdr_first_de() function returns a pointer to a struct NTFS_DE. This
pointer may be NULL. To handle the NULL error effectively, it is important
to implement an error handler. This will help manage potential errors
consistently.

Additionally, error handling for the return value already exists at other
points where this function is called.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 82cae269cf ("fs/ntfs3: Add initialization of super block")
Signed-off-by: Andrey Vatoropin <a.vatoropin@crpt.ru>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-19 15:28:07 +02:00
..
lib
attrib.c fs/ntfs3: Fix warning in ni_fiemap 2025-01-09 13:31:46 +01:00
attrlist.c
bitfunc.c
bitmap.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
debug.h
dir.c fs/ntfs3: Check more cases when directory is corrupted 2024-09-12 11:11:37 +02:00
file.c fs/ntfs3: Fix WARNING in ntfs_extend_initialized_size 2025-05-02 07:50:54 +02:00
frecord.c fs/ntfs3: Fix warning in ni_fiemap 2025-01-09 13:31:46 +01:00
fslog.c fs/ntfs3: Refactor enum_rstbl to suppress static checker 2024-10-17 15:24:14 +02:00
fsntfs.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
index.c fs/ntfs3: handle hdr_first_de() return value 2025-06-19 15:28:07 +02:00
inode.c fs/ntfs3: Implement fallocate for compressed files 2025-01-09 13:31:45 +01:00
Kconfig
lznt.c fs/ntfs3: Check if more than chunk-size bytes are written 2024-11-08 16:28:20 +01:00
Makefile
namei.c fs/ntfs3: Fix possible deadlock in mi_read 2024-11-08 16:28:21 +01:00
ntfs_fs.h fs/ntfs3: Fix warning in ni_fiemap 2025-01-09 13:31:46 +01:00
ntfs.h fs/ntfs3: Prevent integer overflow in hdr_first_de() 2025-04-10 14:37:33 +02:00
record.c fs/ntfs3: Sequential field availability check in mi_enum_attr() 2024-11-08 16:28:28 +01:00
run.c fs/ntfs3: Fix case when unmarked clusters intersect with zone 2024-12-14 20:00:15 +01:00
super.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
upcase.c
xattr.c