From 6c1ee4d304983d2f68bf7639d5912f781398d5ac Mon Sep 17 00:00:00 2001 From: Konstantin Komarov Date: Thu, 23 Sep 2021 18:05:36 +0300 Subject: [Backport 6c1ee4d30498] src: 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 Signed-off-by: Konstantin Komarov --- src/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inode.c b/src/inode.c index d583b71bec502f2042764e27f565e20be1858394..d51bf40188357e8c292b7ddbbee100d3dfbaeff5 100644 --- a/src/inode.c +++ b/src/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 { -- 2.31.1