diff mbox series

[SRU,jammy:gcp,1/1] UBUNTU: SAUCE (no-up): x64/mm: Fix incorrect argument to notify_page_enc_status_changed()

Message ID 20240205170052.606221-2-john.cabaj@canonical.com
State New
Headers show
Series [SRU,jammy:gcp,1/1] UBUNTU: SAUCE (no-up): x64/mm: Fix incorrect argument to notify_page_enc_status_changed() | expand

Commit Message

John Cabaj Feb. 5, 2024, 5 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2052451

27ba8c7 modified notify_page_enc_status_changed(), when it should not have.
Revert this portion of the change to correct the incorrect arguments.

Signed-off-by: John Cabaj <john.cabaj@canonical.com>
---
 arch/x86/mm/mem_encrypt_amd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/x86/mm/mem_encrypt_amd.c b/arch/x86/mm/mem_encrypt_amd.c
index ff51890ce49f..468d15c05f28 100644
--- a/arch/x86/mm/mem_encrypt_amd.c
+++ b/arch/x86/mm/mem_encrypt_amd.c
@@ -315,7 +315,7 @@  void notify_range_enc_status_changed(unsigned long vaddr, unsigned long size, bo
 		psize = page_level_size(level);
 		pmask = page_level_mask(level);
 
-		notify_page_enc_status_changed(pfn, size, enc);
+		notify_page_enc_status_changed(pfn, psize >> PAGE_SHIFT, enc);
 
 		vaddr = (vaddr & pmask) + psize;
 	}