projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Btrfs: return code checking
[linux-2.6-block.git]
/
fs
/
btrfs
/
extent-tree.c
diff --git
a/fs/btrfs/extent-tree.c
b/fs/btrfs/extent-tree.c
index 26321524c186de63f46a5d33169535859586315f..97715bae7847136d0d3c6c80ef83069907f70e93 100644
(file)
--- a/
fs/btrfs/extent-tree.c
+++ b/
fs/btrfs/extent-tree.c
@@
-125,6
+125,11
@@
check_failed:
ins->flags = 0;
start_found = 0;
ret = search_slot(root, ins, &path, 0);
+ if (ret < 0) {
+ release_path(root, &path);
+ return ret;
+ }
+
while (1) {
l = &path.nodes[0]->leaf;
slot = path.slots[0];