Skip to contentSkip to conversation

tools-testing-check-correct-variable-in-open_procmap.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 1, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: tools/testing: check correct variable in open_procmap()
has been removed from the -mm tree. Its filename was
tools-testing-check-correct-variable-in-open_procmap.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: tools/testing: check correct variable in open_procmap()
Date: Wed, 28 May 2025 11:13:45 +0300

Check if "procmap_out->fd" is negative instead of "procmap_out" (which is a pointer).

Fixes bd23f293a0d5 ("tools/testing: add PROCMAP_QUERY helper functions in mm self tests")
Cc levi.yun <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Wei Yang <[email protected]>

---

 tools/testing/selftests/mm/vm_util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/mm/vm_util.c renamed from tools/testing/selftests/mm/vm_util.c~tools-testing-check-correct-variable-in-open_procmap +1 -1
@@ -439,7 +439,7 @@ int open_procmap(pid_t pid, struct procm
 	sprintf(path, "/proc/%d/maps", pid);
 	procmap_out->query.size = sizeof(procmap_out->query);
 	procmap_out->fd = open(path, O_RDONLY);
-	if (procmap_out < 0)
+	if (procmap_out->fd < 0)
 		ret = -errno;
 
 	return ret;

_

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