Skip to content

Commit 688fcbb

Browse files
author
Alexander Gordeev
committed
s390/vmem: fix virtual vs physical address confusion
Fix virtual vs physical address confusion (which currently are the same). Reviewed-by: Heiko Carstens <[email protected]> Signed-off-by: Alexander Gordeev <[email protected]>
1 parent 456be42 commit 688fcbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/s390/mm/vmem.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ static int remove_pagetable(unsigned long start, unsigned long end, bool direct)
481481
*/
482482
static int vmem_add_range(unsigned long start, unsigned long size)
483483
{
484+
start = (unsigned long)__va(start);
484485
return add_pagetable(start, start + size, true);
485486
}
486487

@@ -489,6 +490,7 @@ static int vmem_add_range(unsigned long start, unsigned long size)
489490
*/
490491
static void vmem_remove_range(unsigned long start, unsigned long size)
491492
{
493+
start = (unsigned long)__va(start);
492494
remove_pagetable(start, start + size, true);
493495
}
494496

0 commit comments

Comments
 (0)