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