projects
/
platform
/
upstream
/
btrfs-progs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs-progs: catch memory allocation failure in btrfs_split_item
[platform/upstream/btrfs-progs.git]
/
ctree.c
diff --git
a/ctree.c
b/ctree.c
index
46153e3
..
04cc476
100644
(file)
--- 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;