]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Reduce user error potential
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 17 Nov 2022 19:32:36 +0000 (14:32 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 20:11:49 +0000 (15:11 -0500)
commit1535c813e5a95d31db776898cc354f51c5065b3f
tree4c68b3b6b1ee08296d9013e77231a5e701c8fec5
parent016fdf7a08bdab98652e5250e2625452f0adfbd6
maple_tree: Reduce user error potential

When iterating, a user may operate on the tree and cause the maple state
to be altered and left in an unintuitive state.  Detect this scenario
and correct it by setting to the limit and invalidating the state.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c