summaryrefslogtreecommitdiff
path: root/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-02-28 16:35:06 -0500
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-02-28 16:35:06 -0500
commit92ce8be1205795980188281de2399790e969cca5 (patch)
tree607076272485bca8c3dce03763cabee4b6a0fe29 /extent-tree.c
parent9b4f51240cfb9da74a17c8509e8d6ef8d1496ac4 (diff)
return code checking
Diffstat (limited to 'extent-tree.c')
-rw-r--r--extent-tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/extent-tree.c b/extent-tree.c
index 26321524..97715bae 100644
--- a/extent-tree.c
+++ b/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];