]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
node_copy setting wrong parent slot
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Sun, 31 Aug 2025 00:38:17 +0000 (20:38 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Sun, 31 Aug 2025 00:38:17 +0000 (20:38 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c

index d6069d6c899a0d0b1415155059bce21b6282587a..6a00380b7d357b4866fe72f8957546f7d2f2675c 100644 (file)
@@ -2925,7 +2925,7 @@ unsigned long node_copy(struct ma_state *mas, struct maple_node *src,
                for (int i = 0; i < size; i++) {
                        printk("set slot %u parent\n", i);
                        printk("d_slots = %p\n", d_slots[i]);
-                       mas_set_parent(mas, d_slots[i], edst, i);
+                       mas_set_parent(mas, d_slots[i], edst, d_start + i);
                }
        }