summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ctree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctree.c b/ctree.c
index 46153e3..04cc476 100644
--- a/ctree.c
+++ b/ctree.c
@@ -2243,6 +2243,7 @@ split:
buf = kmalloc(item_size, GFP_NOFS);
+ BUG_ON(!buf);
read_extent_buffer(leaf, buf, btrfs_item_ptr_offset(leaf,
path->slots[0]), item_size);
slot = path->slots[0] + 1;