diff options
author | Alexander Gordeev <agordeev@linux.ibm.com> | 2023-06-17 22:04:26 +0200 |
---|---|---|
committer | Alexander Gordeev <agordeev@linux.ibm.com> | 2023-06-28 13:57:08 +0200 |
commit | 688fcbbb9c0b023b54cf306cbac54300cef7fa5b (patch) | |
tree | 1e472385681ba1385d857f27e97e628204b6ede2 | |
parent | s390/mm: get rid of VMEM_MAX_PHYS macro (diff) | |
download | linux-688fcbbb9c0b023b54cf306cbac54300cef7fa5b.tar.xz linux-688fcbbb9c0b023b54cf306cbac54300cef7fa5b.zip |
s390/vmem: fix virtual vs physical address confusion
Fix virtual vs physical address confusion (which currently are the same).
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
-rw-r--r-- | arch/s390/mm/vmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/mm/vmem.c b/arch/s390/mm/vmem.c index 240950c12217..51cd5ccd2e37 100644 --- a/arch/s390/mm/vmem.c +++ b/arch/s390/mm/vmem.c @@ -481,6 +481,7 @@ static int remove_pagetable(unsigned long start, unsigned long end, bool direct) */ static int vmem_add_range(unsigned long start, unsigned long size) { + start = (unsigned long)__va(start); return add_pagetable(start, start + size, true); } @@ -489,6 +490,7 @@ static int vmem_add_range(unsigned long start, unsigned long size) */ static void vmem_remove_range(unsigned long start, unsigned long size) { + start = (unsigned long)__va(start); remove_pagetable(start, start + size, true); } |