]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
vfio: ccw: validate the count field of a ccw before pinning
authorDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Wed, 11 Oct 2017 02:38:22 +0000 (04:38 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 16 Oct 2017 09:14:48 +0000 (11:14 +0200)
commit4cebc5d6a6ff41c0266d235aa4854b062d34ad09
tree41b1f670f9cefb1f8a0aa118f59bccb8983bf3dd
parent688c29533ffc969773bc860d07d3a5f1995f5878
vfio: ccw: validate the count field of a ccw before pinning

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 <pmorel@linux.vnet.ibm.com>
Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Message-Id: <20171011023822.42948-3-bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/cio/vfio_ccw_cp.c