linux/drivers/s390
Eric Farman c382cbc6db vfio-ccw: Fix the conversion of Format-0 CCWs to Format-1
When processing Format-0 CCWs, we use the "len" variable as the
number of CCWs to convert to Format-1.  But that variable
contains zero here, and is not a meaningful CCW count until
ccwchain_calc_length() returns.  Since that routine requires and
expects Format-1 CCWs to identify the chaining behavior, the
format conversion must be done first.

Convert the 2KB we copied even if it's more than we need.

Fixes: 7f8e89a8f2 ("vfio-ccw: Factor out the ccw0-to-ccw1 transition")
Reported-by: Farhan Ali <alifm@linux.ibm.com>
Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20190702180928.18113-1-farman@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2019-07-05 07:58:53 +02:00
..
block s390/dasd: Fix a precision vs width bug in dasd_feature_list() 2019-07-02 16:00:26 +02:00
char s390/sclp: remove call home support 2019-06-19 17:54:27 +02:00
cio vfio-ccw: Fix the conversion of Format-0 CCWs to Format-1 2019-07-05 07:58:53 +02:00
crypto s390: ap: implement PAPQ AQIC interception in kernel 2019-07-02 16:00:28 +02:00
net s390/Kconfig: pedantic cleanups 2019-06-04 15:03:46 +02:00
scsi scsi: zfcp: fix to prevent port_remove with pure auto scan LUNs (only sdevs) 2019-05-29 21:52:31 -04:00
virtio virtio/s390: make airq summary indicators DMA 2019-06-15 12:25:41 +02:00
Makefile kbuild: rename built-in.o to built-in.a 2018-03-26 02:01:19 +09:00