]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Remove BUG_ON() from mas_set_height()
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 1 Sep 2022 01:06:49 +0000 (21:06 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 21:22:36 +0000 (16:22 -0500)
commiteec9ab99640034fec08d600c283a3f8c1d7b0ae4
treee29051542a76454e6227580f10fe5fa4f7f33d04
parent2398c88a53309860594cdb44754d4720d2b13a42
maple_tree: Remove BUG_ON() from mas_set_height()

Use MT_WARN_ON() instead of MT_BUG_ON() as to avoid crashing the kernel.
In the unlikely even of a tree height of > 31, try to increase the
probability of the error being logged.

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