diff options
author | Alexander Gordeev <agordeev@linux.ibm.com> | 2024-01-31 09:30:36 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-02-09 13:58:16 +0100 |
commit | f78bcb2e26dcac39a637e14c0ede9499822cb872 (patch) | |
tree | a24cd9a63bd04b59e788e0f94010045f74c7b023 | |
parent | 8d16ce148858669f05b8e117a0634010397e17d6 (diff) | |
download | linux-f78bcb2e26dcac39a637e14c0ede9499822cb872.tar.gz linux-f78bcb2e26dcac39a637e14c0ede9499822cb872.tar.bz2 linux-f78bcb2e26dcac39a637e14c0ede9499822cb872.zip |
s390/extmem: fix virtual vs physical address confusion
Fix virtual vs physical address confusion. This does not fix a bug
since virtual and physical address spaces are currently the same.
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
-rw-r--r-- | arch/s390/mm/extmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/mm/extmem.c b/arch/s390/mm/extmem.c index e41869f5cc95..282fefe107a2 100644 --- a/arch/s390/mm/extmem.c +++ b/arch/s390/mm/extmem.c @@ -136,7 +136,7 @@ dcss_diag(int *func, void *parameter, unsigned long rx, ry; int rc; - rx = (unsigned long) parameter; + rx = virt_to_phys(parameter); ry = (unsigned long) *func; diag_stat_inc(DIAG_STAT_X064); @@ -178,7 +178,7 @@ query_segment_type (struct dcss_segment *seg) /* initialize diag input parameters */ qin->qopcode = DCSS_FINDSEGA; - qin->qoutptr = (unsigned long) qout; + qin->qoutptr = virt_to_phys(qout); qin->qoutlen = sizeof(struct qout64); memcpy (qin->qname, seg->dcss_name, 8); |