]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
fix type in memcpy
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 25 Sep 2025 01:57:32 +0000 (21:57 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 25 Sep 2025 01:57:32 +0000 (21:57 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c

index 75a862f90b7d3204043702ee425d58f241075c45..08d1e597d9bd0a88cb194fae2e1800dca72ddf95 100644 (file)
@@ -3506,7 +3506,7 @@ static inline void mas_wr_node_store(struct ma_wr_state *wr_mas,
        /* Copy to the end of node if necessary. */
        copy_size = mas->end - offset_end + 1;
        memcpy(dst_slots + dst_offset, wr_mas->slots + offset_end,
-              sizeof(void *) * copy_size);
+              sizeof(void __rcu *) * copy_size);
        memcpy(dst_pivots + dst_offset, wr_mas->pivots + offset_end,
               sizeof(unsigned long) * (copy_size - 1));