Unverified Commit 6c1ee4d3 authored by Konstantin Komarov's avatar Konstantin Komarov
Browse files

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: default avatarKari Argillander <kari.argillander@gmail.com>
Signed-off-by: default avatarKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
parent 82cb8753
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
	{