mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
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>
This commit is contained in:
parent
82cb875313
commit
6c1ee4d304
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue