]> 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>
Fri, 30 Oct 2020 19:03:34 +0000 (15:03 -0400)
commitad7d37cac275b77ad579c6a659fc138feee520e8
treefbc113e237198db115cbad0377b33a18e50a3fcf
parent8b3f6c28528a14ba3efff45569a940336ee6a537
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