]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: make mas_erase() more robust
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 1 Nov 2023 17:16:19 +0000 (13:16 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:16:21 +0000 (13:16 -0800)
commit0e957681c7dbd4a76de039f70991e9f060eb1415
treec0526639bb5010f848008957b8c5730d5b905473
parent88a3405ef562d81c1008ec9aa263c5699b260cb6
maple_tree: make mas_erase() more robust

mas_erase() may not deal correctly with all maple states.  Make the
function more robust by ensuring the state is in one of the two acceptable
states.

Link: https://lkml.kernel.org/r/20231101171629.3612299-3-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Peng Zhang <zhangpeng.00@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c