aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index f88eb2ce7919..f9efb68fc2e3 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1713,8 +1713,10 @@ struct btrfs_root *open_ctree(struct super_block *sb,
1713 fs_info, BTRFS_ROOT_TREE_OBJECTID); 1713 fs_info, BTRFS_ROOT_TREE_OBJECTID);
1714 1714
1715 bh = btrfs_read_dev_super(fs_devices->latest_bdev); 1715 bh = btrfs_read_dev_super(fs_devices->latest_bdev);
1716 if (!bh) 1716 if (!bh) {
1717 err = -EINVAL;
1717 goto fail_iput; 1718 goto fail_iput;
1719 }
1718 1720
1719 memcpy(&fs_info->super_copy, bh->b_data, sizeof(fs_info->super_copy)); 1721 memcpy(&fs_info->super_copy, bh->b_data, sizeof(fs_info->super_copy));
1720 memcpy(&fs_info->super_for_commit, &fs_info->super_copy, 1722 memcpy(&fs_info->super_for_commit, &fs_info->super_copy,