Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/s390/cio/vfio_ccw_fsm.c
··· 378 378 379 379 spin_lock_irq(&sch->lock); 380 380 sch->isc = VFIO_CCW_ISC; 381 - ret = cio_enable_subchannel(sch, (u32)(unsigned long)sch); 381 + ret = cio_enable_subchannel(sch, (u32)virt_to_phys(sch)); 382 382 if (ret) 383 383 goto err_unlock; 384 384