diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2021-09-28 19:00:30 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2021-10-11 19:17:48 +0300 |
commit | 9b75450d6c580100611743fa7e690ea3cb47cd4a (patch) | |
tree | c935bd4610c25cfc0ceb7451f76ff009a2704e93 /fs/iomap | |
parent | ce46ae0c3e31400dc89d1e4620a812647cab9c72 (diff) | |
download | linux-9b75450d6c580100611743fa7e690ea3cb47cd4a.tar.xz |
fs/ntfs3: Fix memory leak if fill_super failed
In ntfs_init_fs_context we allocate memory in fc->s_fs_info.
In case of failed mount we must free it in ntfs_fill_super.
We can't do it in ntfs_fs_free, because ntfs_fs_free called
with fc->s_fs_info == NULL.
fc->s_fs_info became NULL in sget_fc.
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/iomap')
0 files changed, 0 insertions, 0 deletions