]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix overwritten slot in mas during __mas_add
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 3 Mar 2020 03:21:37 +0000 (22:21 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:28:25 +0000 (12:28 -0500)
commiteaa95f615bea0f0624e9da7c52c1753843521691
treef869f3fe8c3d7cdb7a82a7e0607520c7c052212a
parent0da5a0568cee5a7c3a1dc0ccff78bc3d94c6caf2
maple_tree: Fix overwritten slot in mas during __mas_add

Overwriting the slot in the ma state caused issues later on.  Restore
the value and fix the code in mas_may_move_gap to also detect such
scenarios.

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