Re: [PATCH 2/2] vfio: ccw: validate the count field of a ccw before pinning

2017-10-16 Thread Cornelia Huck
On Wed, 11 Oct 2017 04:38:22 +0200 Dong Jia Shi wrote: > If the count field of a ccw is zero, there is no need to > try to pin page(s) for it. Let's check the count value > before starting pinning operations. > > Reviewed-by: Pierre Morel > Signed-off-by: Dong Jia Shi > --- > drivers/s390/cio

[PATCH 2/2] vfio: ccw: validate the count field of a ccw before pinning

2017-10-10 Thread Dong Jia Shi
If the count field of a ccw is zero, there is no need to try to pin page(s) for it. Let's check the count value before starting pinning operations. Reviewed-by: Pierre Morel Signed-off-by: Dong Jia Shi --- drivers/s390/cio/vfio_ccw_cp.c | 18 +- 1 file changed, 17 insertions(+),