maple_tree: should get pivots boundary by type
authorWei Yang <richard.weiyang@gmail.com>
Sat, 12 Nov 2022 23:43:08 +0000 (23:43 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 1 Feb 2023 00:44:08 +0000 (16:44 -0800)
commitab6ef70a8b0d314c2160af70b0de984664d675e0
tree22b7ff508245eee847c17e1b340dc82b6a76d9c2
parent889a904fe34d90c4416dd403f5d3ad859180cf68
maple_tree: should get pivots boundary by type

We should get pivots boundary by type.  Fixes a potential overindexing of
mt_pivots[].

Link: https://lkml.kernel.org/r/20221112234308.23823-1-richard.weiyang@gmail.com
Fixes: 54a611b60590 ("Maple Tree: add new data structure")
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c