]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Avoid BUG_ON() when setting a leaf node as a parent
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 1 Sep 2022 01:03:02 +0000 (21:03 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 1 Sep 2022 21:35:27 +0000 (17:35 -0400)
commit390ad612c0532f6472a6af06bddf04b11a2e3b54
tree5065883ae3201618c3cbfcc883d2d8e1686c37a8
parentb74bbd6015bc576f5a30e9ad1afdf61bfa018c94
maple_tree: Avoid BUG_ON() when setting a leaf node as a parent

Don't crash the kernel in the very unlikely case that the node passed as
the parent is actually a leaf.  Instead, use MT_WARN_ON() to increase
the probability of the debug information being recorded.

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