diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-03-07 13:28:04 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-03-13 09:23:45 +0100 |
commit | 1c2be70e651306073e7ef0983b748465e93e651d (patch) | |
tree | 0aa094b84d7eb88da617098e44bb98e5b33fe8ba /drivers/s390 | |
parent | 8c30b25bb353734cd20f426482ebb95796fe524f (diff) | |
download | linux-stable-1c2be70e651306073e7ef0983b748465e93e651d.tar.gz linux-stable-1c2be70e651306073e7ef0983b748465e93e651d.tar.bz2 linux-stable-1c2be70e651306073e7ef0983b748465e93e651d.zip |
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 <farman@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/vfio_ccw_fsm.c | 2 |
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; |