]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix allocation issues
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Sun, 25 Oct 2020 02:50:19 +0000 (22:50 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 19:13:30 +0000 (15:13 -0400)
commitcb358996e984fecbf41ad81cbf3d79f81f6ee15e
tree010ac90ead35f56a3d871217fa524fc43d413d33
parent62d482d4d24a2742cb00a9bae8af840987593953
maple_tree: Fix allocation issues

Ensure no overflow on mas_alloc_nodes()
Use allocated instead of calling mas_allocated() multiple times
Fix mas_set_alloc_req() to set the value and not add it.

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