Blame SOURCES/0064-fs-ntfs3-Change-EINVAL-to-ENOMEM-when-d_make_root-fa.patch
|
Kmods SIG |
63c143 |
From 7ea04817866a5ac369f1a33d1b86d06a695aaedb Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
63c143 |
From: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
63c143 |
Date: Thu, 9 Sep 2021 21:09:33 +0300
|
|
Kmods SIG |
63c143 |
Subject: [Backport 7ea04817866a] src: Change EINVAL to ENOMEM when
|
|
Kmods SIG |
63c143 |
d_make_root fails
|
|
Kmods SIG |
63c143 |
|
|
Kmods SIG |
63c143 |
Change EINVAL to ENOMEM when d_make_root fails because that is right
|
|
Kmods SIG |
63c143 |
errno.
|
|
Kmods SIG |
63c143 |
|
|
Kmods SIG |
63c143 |
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
63c143 |
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
63c143 |
---
|
|
Kmods SIG |
63c143 |
src/super.c | 2 +-
|
|
Kmods SIG |
63c143 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Kmods SIG |
63c143 |
|
|
Kmods SIG |
63c143 |
diff --git a/src/super.c b/src/super.c
|
|
Kmods SIG |
63c143 |
index 1e01184f4ee251c05f6df6a54ea29e289dc11a52..642bd63932d09edef15321dc3878ba3e3eb6d4b1 100644
|
|
Kmods SIG |
63c143 |
--- a/src/super.c
|
|
Kmods SIG |
63c143 |
+++ b/src/super.c
|
|
Kmods SIG |
63c143 |
@@ -1284,7 +1284,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|
Kmods SIG |
63c143 |
sb->s_root = d_make_root(inode);
|
|
Kmods SIG |
63c143 |
|
|
Kmods SIG |
63c143 |
if (!sb->s_root) {
|
|
Kmods SIG |
63c143 |
- err = -EINVAL;
|
|
Kmods SIG |
63c143 |
+ err = -ENOMEM;
|
|
Kmods SIG |
63c143 |
goto out;
|
|
Kmods SIG |
63c143 |
}
|
|
Kmods SIG |
63c143 |
|
|
Kmods SIG |
63c143 |
--
|
|
Kmods SIG |
63c143 |
2.31.1
|
|
Kmods SIG |
63c143 |
|