]> 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:18:33 +0000 (15:18 -0500)
commitb723e7bc9bc5b2044f456cd0407b9f91c89346fa
tree0d58407c84b8ee224e925b724b559e7bfec1a6c5
parent90f4a227eaf9b78aa65dcdbe90291439b9281c81
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 walk to the limit, then return
NULL

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