]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix off-by-one error on mas->min when calling mas_prev.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 29 Apr 2020 19:04:29 +0000 (15:04 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:28:27 +0000 (12:28 -0500)
commitc61ca8c61125f79e95a7346ab0e0050975f7638a
treefac113cd14e42be024b83244e3fb5ea520154b91
parent782257b0979a2f9cc84d6962329f3fddf28cbd7d
maple_tree: Fix off-by-one error on mas->min when calling mas_prev.

When using a non-zero slot, the mas->min was set incorrectly for
mas_prev causing the gap calculation to be off-by-one and verification
to fail.

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