summaryrefslogtreecommitdiff
path: root/cmds-check.c
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@gmail.com>2013-07-30 12:09:55 +0100
committerDavid Sterba <dsterba@suse.cz>2013-08-09 14:32:37 +0200
commit2b2201bd094dd1d8d0ab2d119f36e107591f10c1 (patch)
tree19d2d82883076b5d7c486ac381fa36c3b567d1dd /cmds-check.c
parentaf6c1650cf38395143157a674344e195d47c0517 (diff)
Btrfs-progs: add missing path alloc return value check
Also remove unused path in extent-tree.c:finish_current_insert(). Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com> Reviewed-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-check.c')
-rw-r--r--cmds-check.c2
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);