]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Return error on mte_pivots() out of range
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 2 Sep 2022 15:23:21 +0000 (11:23 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 27 Apr 2023 01:32:00 +0000 (21:32 -0400)
commit2d1aba75212c992768172b675bbe28e30b6bd436
tree63ddb6a4514f4b6771288eba34c22778fa40faff
parentd1ec322b536c3f2e3e7a6a97c0d29838427982d0
maple_tree: Return error on mte_pivots() out of range

Rename mte_pivots() to mas_pivots() and pass through the ma_state to set
the error code to -EIO when the offset is out of range for the node
type.  Change the WARN_ON() to MAS_WARN_ON() to log the maple state.

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