linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] maple_tree: Fix bitwise for logical operator in mas_validate_limits()
@ 2022-07-19 18:51 Liam Howlett
  0 siblings, 0 replies; only message in thread
From: Liam Howlett @ 2022-07-19 18:51 UTC (permalink / raw)
  To: maple-tree, linux-mm, linux-kernel, Andrew Morton, Yu Zhao, Hugh Dickins

Use the correct operator.

Fixes: fb7297e8a66b (Maple Tree: add new data structure)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
---
 lib/maple_tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index 0c0bda979693..d5b310e73068 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -6966,7 +6966,7 @@ static void mas_validate_limits(struct ma_state *mas)
 
 		piv = mas_safe_pivot(mas, pivots, i, type);
 
-		if (!piv & (i != 0))
+		if (!piv && (i != 0))
 			break;
 
 		if (!mte_is_leaf(mas->node)) {
-- 
2.35.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-19 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 18:51 [PATCH] maple_tree: Fix bitwise for logical operator in mas_validate_limits() Liam Howlett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).