summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--btrfsck.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/btrfsck.c b/btrfsck.c
index 2e81adcf..f09a4a41 100644
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -786,6 +786,7 @@ static int is_child_root(struct btrfs_root *root, u64 parent_root_id,
if (ret > 0)
break;
+ leaf = path.nodes[0];
}
btrfs_item_key_to_cpu(leaf, &key, path.slots[0]);