diff options
author | Kari Argillander <kari.argillander@gmail.com> | 2021-09-09 21:09:33 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2021-09-20 18:53:08 +0300 |
commit | 7ea04817866a5ac369f1a33d1b86d06a695aaedb (patch) | |
tree | f9be22c01910a5420ea81902ddebfef5408d8ec3 /fs/ntfs3 | |
parent | 0412016e48076f5f9dbdcc6613436e3c6db89523 (diff) | |
download | linux-7ea04817866a5ac369f1a33d1b86d06a695aaedb.tar.bz2 |
fs/ntfs3: Change EINVAL to ENOMEM when d_make_root fails
Change EINVAL to ENOMEM when d_make_root fails because that is right
errno.
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r-- | fs/ntfs3/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index 1e01184f4ee2..642bd63932d0 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -1284,7 +1284,7 @@ load_root: sb->s_root = d_make_root(inode); if (!sb->s_root) { - err = -EINVAL; + err = -ENOMEM; goto out; } |