diff options
Diffstat (limited to 'root-tree.c')
-rw-r--r-- | root-tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/root-tree.c b/root-tree.c index c6b13dc4..09873a43 100644 --- a/root-tree.c +++ b/root-tree.c @@ -193,6 +193,8 @@ int btrfs_add_root_ref(struct btrfs_trans_handle *trans, path = btrfs_alloc_path(); + if (!path) + return -ENOMEM; key.objectid = root_id; key.type = type; |