linux-stable/fs/ntfs3
Dan Carpenter 8c83a4851d
fs/ntfs3: Potential NULL dereference in hdr_find_split()
The "e" pointer is dereferenced before it has been checked for NULL.
Move the dereference after the NULL check to prevent an Oops.

Fixes: 82cae269cf ("fs/ntfs3: Add initialization of super block")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
2021-08-27 17:05:14 +03:00
..
lib fs/ntfs3: Fix various spelling mistakes 2021-08-27 17:04:45 +03:00
attrib.c fs/ntfs3: Do not use driver own alloc wrappers 2021-08-27 17:05:12 +03:00
attrlist.c fs/ntfs3: Do not use driver own alloc wrappers 2021-08-27 17:05:12 +03:00
bitfunc.c fs/ntfs3: Add bitmap 2021-08-13 07:55:41 -07:00
bitmap.c fs/ntfs3: Use kcalloc/kmalloc_array over kzalloc/kmalloc 2021-08-27 17:05:13 +03:00
debug.h fs/ntfs3: Do not use driver own alloc wrappers 2021-08-27 17:05:12 +03:00
dir.c fs/ntfs3: Add file operations and implementation 2021-08-13 07:55:49 -07:00
file.c fs/ntfs3: Use kcalloc/kmalloc_array over kzalloc/kmalloc 2021-08-27 17:05:13 +03:00
frecord.c fs/ntfs3: Use kcalloc/kmalloc_array over kzalloc/kmalloc 2021-08-27 17:05:13 +03:00
fslog.c fs/ntfs3: add checks for allocation failure 2021-08-27 17:05:13 +03:00
fsntfs.c fs/ntfs3: Do not use driver own alloc wrappers 2021-08-27 17:05:12 +03:00
index.c fs/ntfs3: Potential NULL dereference in hdr_find_split() 2021-08-27 17:05:14 +03:00
inode.c fs/ntfs3: Do not use driver own alloc wrappers 2021-08-27 17:05:12 +03:00
Kconfig fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
lznt.c fs/ntfs3: Do not use driver own alloc wrappers 2021-08-27 17:05:12 +03:00
Makefile fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
namei.c fs/ntfs3: Use kernel ALIGN macros over driver specific 2021-08-27 17:05:12 +03:00
ntfs.h fs/ntfs3: Use kernel ALIGN macros over driver specific 2021-08-27 17:05:12 +03:00
ntfs_fs.h fs/ntfs3: Do not use driver own alloc wrappers 2021-08-27 17:05:12 +03:00
record.c fs/ntfs3: Do not use driver own alloc wrappers 2021-08-27 17:05:12 +03:00
run.c fs/ntfs3: Do not use driver own alloc wrappers 2021-08-27 17:05:12 +03:00
super.c fs/ntfs3: Do not use driver own alloc wrappers 2021-08-27 17:05:12 +03:00
upcase.c fs/ntfs3: Fix various spelling mistakes 2021-08-27 17:04:45 +03:00
xattr.c fs/ntfs3: fix an error code in ntfs_get_acl_ex() 2021-08-27 17:05:13 +03:00