]> 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>
Mon, 28 Nov 2022 20:58:17 +0000 (15:58 -0500)
commit28fd1f84dc0fdbccd071d7371b5d30c964dfa93a
treea732bf988422b5f204441674736195e84c8d8880
parentb73d914e7066872e3b64fecded8cddd8f1904820
maple_tree: Reduce user error potential

When iterating, a user may modify the tree and cause the iterator to be
out of range.  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