You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Fix btrfs_fill_super to return -EINVAL when no FS found
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
+1
-2
@@ -728,9 +728,8 @@ struct btrfs_root *open_ctree(struct super_block *sb,
|
||||
struct btrfs_root *dev_root = kmalloc(sizeof(struct btrfs_root),
|
||||
GFP_NOFS);
|
||||
int ret;
|
||||
int err = -EIO;
|
||||
int err = -EINVAL;
|
||||
struct btrfs_super_block *disk_super;
|
||||
|
||||
if (!extent_root || !tree_root || !fs_info) {
|
||||
err = -ENOMEM;
|
||||
goto fail;
|
||||
|
||||
Reference in New Issue
Block a user