]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: reduce user error potential
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 20 Jan 2023 16:26:04 +0000 (11:26 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 22 Mar 2023 16:03:47 +0000 (12:03 -0400)
commit17364a05a114317f88badd0958a7f327fd2a0663
treefacf91f67050ad6f70e6326ff7b8cac8c442bff3
parente8d857eb226ad91db780fa76d89c8fd188893e32
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.

Link: https://lkml.kernel.org/r/20230120162650.984577-4-Liam.Howlett@oracle.com
Cc: <Stable@vger.kernel.org>
Fixes: 54a611b60590 ("Maple Tree: add new data structure")
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c