[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220719185142.3360559-1-Liam.Howlett@oracle.com>
Date: Tue, 19 Jul 2022 18:51:57 +0000
From: Liam Howlett <liam.howlett@...cle.com>
To: "maple-tree@...ts.infradead.org" <maple-tree@...ts.infradead.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Yu Zhao <yuzhao@...gle.com>, Hugh Dickins <hughd@...gle.com>
Subject: [PATCH] maple_tree: Fix bitwise for logical operator in
mas_validate_limits()
Use the correct operator.
Fixes: fb7297e8a66b (Maple Tree: add new data structure)
Signed-off-by: Liam R. Howlett <Liam.Howlett@...cle.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
Powered by blists - more mailing lists