]> 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>
Thu, 1 Sep 2022 21:35:27 +0000 (17:35 -0400)
commit1caf23bf770bf61ce74a56bdb28737510fa46238
tree0df9a65db6507e21c65a48c9fc78a06a9b1d561e
parent390ad612c0532f6472a6af06bddf04b11a2e3b54
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