Skip to content

Commit e78002a

Browse files
oberparVasily Gorbik
authored andcommitted
s390/cio: fix virtual vs physical address confusion
Fix virtual vs physical address confusion (which currently are the same). Reviewed-by: Vineeth Vijayan <[email protected]> Signed-off-by: Peter Oberparleiter <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent f48781d commit e78002a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/s390/cio/chsc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,8 @@ int __chsc_do_secm(struct channel_subsystem *css, int enable)
881881
secm_area->request.code = 0x0016;
882882

883883
secm_area->key = PAGE_DEFAULT_KEY >> 4;
884-
secm_area->cub_addr1 = (u64)(unsigned long)css->cub_addr1;
885-
secm_area->cub_addr2 = (u64)(unsigned long)css->cub_addr2;
884+
secm_area->cub_addr1 = virt_to_phys(css->cub_addr1);
885+
secm_area->cub_addr2 = virt_to_phys(css->cub_addr2);
886886

887887
secm_area->operation_code = enable ? 0 : 1;
888888

0 commit comments

Comments
 (0)