diff options
Diffstat (limited to 'cmds-check.c')
-rw-r--r-- | cmds-check.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds-check.c b/cmds-check.c index 5349d4bf..3f913cec 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -4569,6 +4569,8 @@ static int fixup_extent_refs(struct btrfs_trans_handle *trans, flags = BTRFS_BLOCK_FLAG_FULL_BACKREF; path = btrfs_alloc_path(); + if (!path) + return -ENOMEM; /* step one, make sure all of the backrefs agree */ ret = verify_backrefs(trans, info, path, rec); |