mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/mm/cpa-test: Correct length selection
@ 2024-01-25 18:24 Jason Andryuk
  2024-01-25 18:30 ` Dave Hansen
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Andryuk @ 2024-01-25 18:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Jason Andryuk, Dave Hansen, Andy Lutomirski, Peter Zijlstra,
	Thomas Gleixner, Ingo Molnar, Borislav Petkov, x86,
	H. Peter Anvin

The length of pages to modify corresponding to addr[i] is given in
len[i].  Remove the hard coded 1.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
---
This is a typo, right?  The other cases use len[i].

 arch/x86/mm/pat/cpa-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/mm/pat/cpa-test.c b/arch/x86/mm/pat/cpa-test.c
index 3d2f7f0a6ed1..ad3c1feec990 100644
--- a/arch/x86/mm/pat/cpa-test.c
+++ b/arch/x86/mm/pat/cpa-test.c
@@ -183,7 +183,7 @@ static int pageattr_test(void)
 			break;
 
 		case 1:
-			err = change_page_attr_set(addrs, len[1], PAGE_CPA_TEST, 1);
+			err = change_page_attr_set(addrs, len[i], PAGE_CPA_TEST, 1);
 			break;
 
 		case 2:
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-25 18:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-25 18:24 [PATCH] x86/mm/cpa-test: Correct length selection Jason Andryuk
2024-01-25 18:30 ` Dave Hansen
2024-01-25 18:39   ` Jason Andryuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®