diff options
author | Peter Oberparleiter <oberpar@linux.ibm.com> | 2023-08-18 16:14:02 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2023-10-25 16:08:29 +0300 |
commit | e78002aa9a5a9eaf18bc29ccaef7f405616fd68e (patch) | |
tree | e161bd7adf29b57515358ef3b7a99910aa496a6d /drivers/s390 | |
parent | f48781d220ee6bb59816383237bf0abd1c65c493 (diff) | |
download | linux-e78002aa9a5a9eaf18bc29ccaef7f405616fd68e.tar.xz |
s390/cio: fix virtual vs physical address confusion
Fix virtual vs physical address confusion (which currently are the
same).
Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/chsc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c index 0abd77f4b664..cc6dc5076ffc 100644 --- a/drivers/s390/cio/chsc.c +++ b/drivers/s390/cio/chsc.c @@ -881,8 +881,8 @@ int __chsc_do_secm(struct channel_subsystem *css, int enable) secm_area->request.code = 0x0016; secm_area->key = PAGE_DEFAULT_KEY >> 4; - secm_area->cub_addr1 = (u64)(unsigned long)css->cub_addr1; - secm_area->cub_addr2 = (u64)(unsigned long)css->cub_addr2; + secm_area->cub_addr1 = virt_to_phys(css->cub_addr1); + secm_area->cub_addr2 = virt_to_phys(css->cub_addr2); secm_area->operation_code = enable ? 0 : 1; |