Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c918f836 authored by Mike Rapoport (Microsoft)'s avatar Mike Rapoport (Microsoft) Committed by Greg Kroah-Hartman
Browse files

x86/mm/pat: cpa-test: fix length for CPA_ARRAY test



[ Upstream commit 33ea120582a638b2f2e380a50686c2b1d7cce795 ]

The CPA_ARRAY test always uses len[1] as numpages argument to
change_page_attr_set() although the addresses array is different each
iteration of the test loop.

Replace len[1] with len[i] to have numpages matching the addresses array.

Fixes: ecc729f1 ("x86/mm/cpa: Add ARRAY and PAGES_ARRAY selftests")
Signed-off-by: default avatar"Mike Rapoport (Microsoft)" <rppt@kernel.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250126074733.1384926-2-rppt@kernel.org


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0d510e17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment