aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 465b5d7d6b48..4edcbe915736 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -3709,7 +3709,8 @@ int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root
3709 unsigned long ptr; 3709 unsigned long ptr;
3710 3710
3711 path = btrfs_alloc_path(); 3711 path = btrfs_alloc_path();
3712 BUG_ON(!path); 3712 if (!path)
3713 return -ENOMEM;
3713 ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); 3714 ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size);
3714 if (!ret) { 3715 if (!ret) {
3715 leaf = path->nodes[0]; 3716 leaf = path->nodes[0];