linux/fs/ntfs3
Colin Ian King 880301bb31
fs/ntfs3: Fix a memory leak on object opts
Currently a failed allocation on sbi->upcase will cause an exit via
the label free_sbi causing a memory leak on object opts. Fix this by
re-ordering the exit paths free_opts and free_sbi so that kfree's occur
in the reverse allocation order.

Addresses-Coverity: ("Resource leak")
Fixes: 27fac77707 ("fs/ntfs3: Init spi more in init_fs_context than fill_super")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
2021-09-20 18:53:12 +03:00
..
lib fs/ntfs3: Add missing header and guards to lib/ headers 2021-09-13 19:41:44 +03:00
attrib.c fs/ntfs3: Use min/max macros instated of ternary operators 2021-09-16 17:01:37 +03:00
attrlist.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
bitfunc.c fs/ntfs3: Change right headers to bitfunc.c 2021-09-13 19:41:45 +03:00
bitmap.c fs/ntfs3: Use min/max macros instated of ternary operators 2021-09-16 17:01:37 +03:00
debug.h fs/ntfs3. Add forward declarations for structs to debug.h 2021-09-13 19:41:43 +03:00
dir.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
file.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
frecord.c fs/ntfs3: Remove braces from single statment block 2021-09-16 17:01:36 +03:00
fslog.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
fsntfs.c fs/ntfs3: Use min/max macros instated of ternary operators 2021-09-16 17:01:37 +03:00
index.c fs/ntfs3: Always use binary search with entry search 2021-09-13 19:41:47 +03:00
inode.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
Kconfig fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
lznt.c fs/ntfs3: Remove tabs before spaces from comment 2021-09-16 17:01:36 +03:00
Makefile fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
namei.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
ntfs_fs.h fs/ntfs3: Add missing headers and forward declarations to ntfs_fs.h 2021-09-13 19:41:44 +03:00
ntfs.h fs/ntfs3: Always use binary search with entry search 2021-09-13 19:41:47 +03:00
record.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
run.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
super.c fs/ntfs3: Fix a memory leak on object opts 2021-09-20 18:53:12 +03:00
upcase.c fs/ntfs3: Change right headers to upcase.c 2021-09-13 19:41:45 +03:00
xattr.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00