]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: remove a BUG_ON() in mas_alloc_nodes()
authorPetr Tesarik <ptesarik@suse.com>
Thu, 13 Feb 2025 11:44:53 +0000 (12:44 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:53 +0000 (21:49 -0800)
commitb639a6070afcf0c6006a3a9d64c26708461e32a2
treea95f444d6812518dded264e94c26b35ce79174fd
parentd563b906be26fd74bce2d21d85511c85ee381d7b
maple_tree: remove a BUG_ON() in mas_alloc_nodes()

Remove a BUG_ON() right before a WARN_ON() with the same condition.

Calling WARN_ON() and BUG_ON() here is definitely wrong.  Since the goal is
generally to remove BUG_ON() invocations from the kernel, keep only the
WARN_ON().

Link: https://lkml.kernel.org/r/20250213114453.1078318-1-ptesarik@suse.com
Fixes: 067311d33e65 ("maple_tree: separate ma_state node from status")
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c