Skip to contentSkip to conversation

selftest-vm-uninitialized-variable-in-main.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 30, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: selftest/vm: uninitialized variable in main()
has been removed from the -mm tree. Its filename was
selftest-vm-uninitialized-variable-in-main.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: Dan Carpenter <[email protected]>
Subject: selftest/vm: uninitialized variable in main()
Date: Tue, 19 Jul 2022 12:04:14 +0300

Initialize "length" to zero by default.

Fixes ff712a627f72 ("selftests/vm: cleanup hugetlb file after mremap test")
Cc Mike Kravetz <[email protected]>
Cc Shuah Khan <[email protected]>

---

 tools/testing/selftests/vm/hugepage-mremap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/vm/hugepage-mremap.c renamed from tools/testing/selftests/vm/hugepage-mremap.c~selftest-vm-uninitialized-variable-in-main +1 -1
@@ -107,7 +107,7 @@ static void register_region_with_uffd(ch
 
 int main(int argc, char *argv[])
 {
-	size_t length;
+	size_t length = 0;
 
 	if (argc != 2 && argc != 3) {
 		printf("Usage: %s [length_in_MB] <hugetlb_file>\n", argv[0]);

_

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