Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0463bb4e authored by Jim Meyering's avatar Jim Meyering Committed by Chris Mason
Browse files

Btrfs: disk-io.c (open_ctree): Don't deref. NULL upon failed kzalloc

parent 75ccf47d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1371,7 +1371,8 @@ struct btrfs_root *open_ctree(struct super_block *sb,

	struct btrfs_super_block *disk_super;

	if (!extent_root || !tree_root || !fs_info) {
	if (!extent_root || !tree_root || !fs_info ||
	    !chunk_root || !dev_root) {
		err = -ENOMEM;
		goto fail;
	}