Blame SOURCES/0064-fs-ntfs3-Change-EINVAL-to-ENOMEM-when-d_make_root-fa.patch
|
Kmods SIG |
8b815c |
From 7ea04817866a5ac369f1a33d1b86d06a695aaedb 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:33 +0300
|
|
Kmods SIG |
8b815c |
Subject: [Backport 7ea04817866a] src: Change EINVAL to ENOMEM when
|
|
Kmods SIG |
8b815c |
d_make_root fails
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
Change EINVAL to ENOMEM when d_make_root fails because that is right
|
|
Kmods SIG |
8b815c |
errno.
|
|
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 | 2 +-
|
|
Kmods SIG |
8b815c |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
diff --git a/src/super.c b/src/super.c
|
|
Kmods SIG |
8b815c |
index 1e01184f4ee251c05f6df6a54ea29e289dc11a52..642bd63932d09edef15321dc3878ba3e3eb6d4b1 100644
|
|
Kmods SIG |
8b815c |
--- a/src/super.c
|
|
Kmods SIG |
8b815c |
+++ b/src/super.c
|
|
Kmods SIG |
8b815c |
@@ -1284,7 +1284,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|
Kmods SIG |
8b815c |
sb->s_root = d_make_root(inode);
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
if (!sb->s_root) {
|
|
Kmods SIG |
8b815c |
- err = -EINVAL;
|
|
Kmods SIG |
8b815c |
+ err = -ENOMEM;
|
|
Kmods SIG |
8b815c |
goto out;
|
|
Kmods SIG |
8b815c |
}
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
--
|
|
Kmods SIG |
8b815c |
2.31.1
|
|
Kmods SIG |
8b815c |
|