Skip to contentSkip to conversation

crash_dump-remove-redundant-less-than-zero-check.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Mar 28

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: crash_dump: remove redundant less-than-zero check
has been removed from the -mm tree. Its filename was
crash_dump-remove-redundant-less-than-zero-check.patch

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

------------------------------------------------------
From: Thorsten Blum <[email protected]>
Subject: crash_dump: remove redundant less-than-zero check
Date: Sat, 28 Feb 2026 09:51:36 +0100

'key_count' is an 'unsigned int' and cannot be less than zero. Remove the redundant condition.

---

 kernel/crash_dump_dm_crypt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/crash_dump_dm_crypt.c renamed from kernel/crash_dump_dm_crypt.c~crash_dump-remove-redundant-less-than-zero-check +1 -1
@@ -115,7 +115,7 @@ static int restore_dm_crypt_keys_to_thre
 
 	addr = dm_crypt_keys_addr;
 	dm_crypt_keys_read((char *)&key_count, sizeof(key_count), &addr);
-	if (key_count < 0 || key_count > KEY_NUM_MAX) {
+	if (key_count > KEY_NUM_MAX) {
 		kexec_dprintk("Failed to read the number of dm-crypt keys\n");
 		return -1;
 	}

_

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