vfio-ccw: Copy CCW data outside length calculation
authorEric Farman <farman@linux.ibm.com>
Tue, 18 Jun 2019 20:23:50 +0000 (22:23 +0200)
committerCornelia Huck <cohuck@redhat.com>
Fri, 21 Jun 2019 12:12:45 +0000 (14:12 +0200)
commitded563f31d0eb4de0bcb101b755cdf6f4ed805e4
treed77b09c8f75f602fed50ba1f61efb6200bdfb509
parent6246590230e9c1225d2ce8d0160376b4d5511281
vfio-ccw: Copy CCW data outside length calculation

It doesn't make much sense to "hide" the copy to the channel_program
struct inside a routine that calculates the length of the chain.

Let's move it to the calling routine, which will later copy from
channel_program to the memory it allocated itself.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Message-Id: <20190618202352.39702-4-farman@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Farhan Ali <alifm@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/cio/vfio_ccw_cp.c