aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Carstens <[email protected]>2024-03-07 13:28:04 +0100
committerHeiko Carstens <[email protected]>2024-03-13 09:23:45 +0100
commit1c2be70e651306073e7ef0983b748465e93e651d (patch)
tree0aa094b84d7eb88da617098e44bb98e5b33fe8ba
parent8c30b25bb353734cd20f426482ebb95796fe524f (diff)
s390/vfio_ccw: 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. Reviewed-by: Eric Farman <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
-rw-r--r--drivers/s390/cio/vfio_ccw_fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/cio/vfio_ccw_fsm.c b/drivers/s390/cio/vfio_ccw_fsm.c
index 09877b46181d..4d7988ea47ef 100644
--- a/drivers/s390/cio/vfio_ccw_fsm.c
+++ b/drivers/s390/cio/vfio_ccw_fsm.c
@@ -378,7 +378,7 @@ static void fsm_open(struct vfio_ccw_private *private,
spin_lock_irq(&sch->lock);
sch->isc = VFIO_CCW_ISC;
- ret = cio_enable_subchannel(sch, (u32)(unsigned long)sch);
+ ret = cio_enable_subchannel(sch, (u32)virt_to_phys(sch));
if (ret)
goto err_unlock;