From: Liam R. Howlett Date: Thu, 25 Sep 2025 01:57:32 +0000 (-0400) Subject: fix type in memcpy X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9c691f6f8f89e9d56bdd2273ecf02f7f4dcbc7eb;p=users%2Fjedix%2Flinux-maple.git fix type in memcpy Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 75a862f90b7d..08d1e597d9bd 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -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));