]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7317186fe332ee18b56502eed67befe3b7a48c3
treed77b09c8f75f602fed50ba1f61efb6200bdfb509
parente79791eb98e5fc44777288b4a6f31ce58f647ec7
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