summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/mm/hmm-tests.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2024-10-14 10:45:28 -0700
committerNamhyung Kim <namhyung@kernel.org>2024-10-14 10:45:28 -0700
commit77b679453d3364688ff3e5153c0be5b2b52672b7 (patch)
tree2279ec3271529a6a4dcec324930a1f46238ffd66 /tools/testing/selftests/mm/hmm-tests.c
parent1a3d6a9723d4dbdad41dad67b66a64d4a84c5f5c (diff)
parent8e929cb546ee42c9a61d24fae60605e9e3192354 (diff)
Merge tag 'v6.12-rc3' into perf-tools-next
To get the fixes in the current perf-tools tree. Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/testing/selftests/mm/hmm-tests.c')
-rw-r--r--tools/testing/selftests/mm/hmm-tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/mm/hmm-tests.c b/tools/testing/selftests/mm/hmm-tests.c
index d2cfc9b494a0..141bf63cbe05 100644
--- a/tools/testing/selftests/mm/hmm-tests.c
+++ b/tools/testing/selftests/mm/hmm-tests.c
@@ -1657,7 +1657,7 @@ TEST_F(hmm2, double_map)
buffer->fd = -1;
buffer->size = size;
- buffer->mirror = malloc(npages);
+ buffer->mirror = malloc(size);
ASSERT_NE(buffer->mirror, NULL);
/* Reserve a range of addresses. */