btrfs: sanity mount option parsing and early mount code
[deliverable/linux.git] / fs / btrfs / disk-io.c
index 3805e7eab82da3886e7d5231f7ba1f6a563fdba9..b9a53646ceb2e8dd90a1f8b7dee205a68c36de6f 100644 (file)
@@ -1266,8 +1266,11 @@ struct btrfs_root *open_ctree(struct super_block *sb,
        if (!btrfs_super_root(disk_super))
                goto fail_sb_buffer;
 
-       btrfs_parse_options(options, tree_root, NULL);
+       err = btrfs_parse_options(tree_root, options);
+       if (err)
+               goto fail_sb_buffer;
 
+       err = -EINVAL;
        if (btrfs_super_num_devices(disk_super) > fs_devices->open_devices) {
                printk("Btrfs: wanted %llu devices, but found %llu\n",
                       (unsigned long long)btrfs_super_num_devices(disk_super),
This page took 0.025193 seconds and 5 git commands to generate.