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>
This commit is contained in:
Kari Argillander 2021-09-09 21:09:33 +03:00 committed by Konstantin Komarov
parent 0412016e48
commit 7ea0481786
No known key found for this signature in database
GPG Key ID: A9B0331F832407B6

View File

@ -1284,7 +1284,7 @@ load_root:
sb->s_root = d_make_root(inode);
if (!sb->s_root) {
err = -EINVAL;
err = -ENOMEM;
goto out;
}