mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
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:
parent
0412016e48
commit
7ea0481786
|
|
@ -1284,7 +1284,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||
sb->s_root = d_make_root(inode);
|
||||
|
||||
if (!sb->s_root) {
|
||||
err = -EINVAL;
|
||||
err = -ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user