Skip to contentSkip to conversation

lib-test_meminit-use-for-bools.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 2

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled

     Subject: lib/test_meminit: use && for bools

has been removed from the -mm tree. Its filename was
lib-test_meminit-use-for-bools.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Alexander Potapenko <[email protected]>
Subject: lib/test_meminit: use && for bools
Date: Mon, 4 May 2026 12:06:37 +0200

As pointed out by Dan Carpenter, test_kmemcache() was using a bitwise AND on two bools instead of a boolean AND. Fix this for the sake of code cleanliness.

---

 lib/test_meminit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/test_meminit.c renamed from lib/test_meminit.c~lib-test_meminit-use-for-bools +1 -1
@@ -387,7 +387,7 @@ static int __init test_kmemcache(int *to
 			ctor = flags & 1;
 			rcu = flags & 2;
 			zero = flags & 4;
-			if (ctor & zero)
+			if (ctor && zero)
 				continue;
 			num_tests += do_kmem_cache_size(size, ctor, rcu, zero,
 							&failures);

_

Patches currently in -mm which might be from [email protected] are