Blame SOURCES/0065-fs-ntfs3-Remove-impossible-fault-condition-in-fill_s.patch

Kmods SIG 8b815c
From 5d7d6b16bc1dbe0f84997e639c49b5ed98a562f7 Mon Sep 17 00:00:00 2001
Kmods SIG 8b815c
From: Kari Argillander <kari.argillander@gmail.com>
Kmods SIG 8b815c
Date: Thu, 9 Sep 2021 21:09:34 +0300
Kmods SIG 8b815c
Subject: [Backport 5d7d6b16bc1d] src: Remove impossible fault condition
Kmods SIG 8b815c
 in fill_super
Kmods SIG 8b815c
Kmods SIG 8b815c
Remove root drop when we fault out. This can never happened because
Kmods SIG 8b815c
when we allocate root we eather fault when no root or success.
Kmods SIG 8b815c
Kmods SIG 8b815c
Signed-off-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/super.c | 6 ------
Kmods SIG 8b815c
 1 file changed, 6 deletions(-)
Kmods SIG 8b815c
Kmods SIG 8b815c
diff --git a/src/super.c b/src/super.c
Kmods SIG 8b815c
index 642bd63932d09edef15321dc3878ba3e3eb6d4b1..ad185c723c0ee44506f88c96ae4b3497f623fe79 100644
Kmods SIG 8b815c
--- a/src/super.c
Kmods SIG 8b815c
+++ b/src/super.c
Kmods SIG 8b815c
@@ -1295,12 +1295,6 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
Kmods SIG 8b815c
 
Kmods SIG 8b815c
 out:
Kmods SIG 8b815c
 	iput(inode);
Kmods SIG 8b815c
-
Kmods SIG 8b815c
-	if (sb->s_root) {
Kmods SIG 8b815c
-		d_drop(sb->s_root);
Kmods SIG 8b815c
-		sb->s_root = NULL;
Kmods SIG 8b815c
-	}
Kmods SIG 8b815c
-
Kmods SIG 8b815c
 	return err;
Kmods SIG 8b815c
 }
Kmods SIG 8b815c
 
Kmods SIG 8b815c
-- 
Kmods SIG 8b815c
2.31.1
Kmods SIG 8b815c