mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 05:50:53 +07:00
Btrfs: disk-io.c (open_ctree): Don't deref. NULL upon failed kzalloc
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
75ccf47d13
commit
0463bb4e8d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user