Blame SOURCES/0081-fs-ntfs3-Fix-logical-error-in-ntfs_create_inode.patch
|
Kmods SIG |
8b815c |
From 6c1ee4d304983d2f68bf7639d5912f781398d5ac Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
8b815c |
From: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
8b815c |
Date: Thu, 23 Sep 2021 18:05:36 +0300
|
|
Kmods SIG |
8b815c |
Subject: [Backport 6c1ee4d30498] src: Fix logical error in
|
|
Kmods SIG |
8b815c |
ntfs_create_inode
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
We need to always call indx_delete_entry after indx_insert_entry
|
|
Kmods SIG |
8b815c |
if error occurred.
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
8b815c |
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
8b815c |
---
|
|
Kmods SIG |
8b815c |
src/inode.c | 2 +-
|
|
Kmods SIG |
8b815c |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
diff --git a/src/inode.c b/src/inode.c
|
|
Kmods SIG |
8b815c |
index d583b71bec502f2042764e27f565e20be1858394..d51bf40188357e8c292b7ddbbee100d3dfbaeff5 100644
|
|
Kmods SIG |
8b815c |
--- a/src/inode.c
|
|
Kmods SIG |
8b815c |
+++ b/src/inode.c
|
|
Kmods SIG |
8b815c |
@@ -1575,7 +1575,7 @@ struct inode *ntfs_create_inode(struct user_namespace *mnt_userns,
|
|
Kmods SIG |
8b815c |
if (!S_ISLNK(mode) && (sb->s_flags & SB_POSIXACL)) {
|
|
Kmods SIG |
8b815c |
err = ntfs_init_acl(mnt_userns, inode, dir);
|
|
Kmods SIG |
8b815c |
if (err)
|
|
Kmods SIG |
8b815c |
- goto out6;
|
|
Kmods SIG |
8b815c |
+ goto out7;
|
|
Kmods SIG |
8b815c |
} else
|
|
Kmods SIG |
8b815c |
#endif
|
|
Kmods SIG |
8b815c |
{
|
|
Kmods SIG |
8b815c |
--
|
|
Kmods SIG |
8b815c |
2.31.1
|
|
Kmods SIG |
8b815c |
|