[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240125182417.51898-1-jandryuk@gmail.com>
Date: Thu, 25 Jan 2024 13:24:16 -0500
From: Jason Andryuk <jandryuk@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Jason Andryuk <jandryuk@...il.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Andy Lutomirski <luto@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>,
x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>
Subject: [PATCH] x86/mm/cpa-test: Correct length selection
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@...il.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
Powered by blists - more mailing lists