projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb2067f
)
Btrfs: add missing error handling to read_tree_block
author
Filipe David Borba Manana
<fdmanana@gmail.com>
Tue, 30 Jul 2013 23:39:56 +0000
(
00:39
+0100)
committer
Chris Mason
<chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:04:46 +0000
(08:04 -0400)
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/disk-io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index 13564354c92740b88116bab87c267c947e91ade1..2a378abb03fb630a6a075689bd4e047ccf2d43ed 100644
(file)
--- a/
fs/btrfs/disk-io.c
+++ b/
fs/btrfs/disk-io.c
@@
-1149,6
+1149,10
@@
struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr,
return NULL;
ret = btree_read_extent_buffer_pages(root, buf, 0, parent_transid);
+ if (ret) {
+ free_extent_buffer(buf);
+ return NULL;
+ }
return buf;
}