s390/cio: fix virtual vs physical address confusion
authorPeter Oberparleiter <oberpar@linux.ibm.com>
Fri, 18 Aug 2023 13:14:02 +0000 (15:14 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 25 Oct 2023 13:08:29 +0000 (15:08 +0200)
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>
drivers/s390/cio/chsc.c

index 0abd77f4b664626ace9d5b7be3dd25c2a79836c8..cc6dc5076ffc83c62692a12188420188dd3a5f22 100644 (file)
@@ -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;