diff mbox series

[v2,1/6] fs/ntfs3: Fix logical error in ntfs_create_inode

Message ID 93b2af74-22c2-4f36-8ad7-c1cb035e00f4@paragon-software.com (mailing list archive)
State New, archived
Headers show
Series fs/ntfs3: Refactor locking in inode_operations | expand

Commit Message

Konstantin Komarov Sept. 23, 2021, 3:40 p.m. UTC
We need to always call indx_delete_entry after indx_insert_entry
if error occurred.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
---
 fs/ntfs3/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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
 	{