diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2021-09-23 17:05:36 +0200 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2021-09-24 16:39:44 +0200 |
commit | 6c1ee4d304983d2f68bf7639d5912f781398d5ac (patch) | |
tree | 92f1dfaa12548315eaeca33d0849bd58b0bdae3a /fs/ntfs3 | |
parent | fs/ntfs3: Remove deprecated mount options nls (diff) | |
download | linux-6c1ee4d304983d2f68bf7639d5912f781398d5ac.tar.xz linux-6c1ee4d304983d2f68bf7639d5912f781398d5ac.zip |
fs/ntfs3: Fix logical error in ntfs_create_inode
We need to always call indx_delete_entry after indx_insert_entry
if error occurred.
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r-- | fs/ntfs3/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c index d583b71bec50..d51bf4018835 100644 --- a/fs/ntfs3/inode.c +++ b/fs/ntfs3/inode.c @@ -1575,7 +1575,7 @@ struct inode *ntfs_create_inode(struct user_namespace *mnt_userns, if (!S_ISLNK(mode) && (sb->s_flags & SB_POSIXACL)) { err = ntfs_init_acl(mnt_userns, inode, dir); if (err) - goto out6; + goto out7; } else #endif { |