]> 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>
Tue, 13 Dec 2022 21:22:36 +0000 (16:22 -0500)
commit2398c88a53309860594cdb44754d4720d2b13a42
tree60aeb6bcdcf40c63f79d8d04644682766c44d744
parent394e9e88da30258e5853cd4c33684d73d6c3edc5
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