]> 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>
Fri, 30 Oct 2020 19:04:38 +0000 (15:04 -0400)
commitabd3786d6dfad4f2e433ff6dd2a42a3c47c41dc2
tree26e64d8305a2c30009aaee9aba9e1de4ae12cd46
parenta7eb73b524cc9c9921ca0e7ad6690b34960d52c3
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