]> git.baikalelectronics.ru Git - 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)
commit37a584377ae3de143bd56461233c4fc9f70be6ae
tree41b1f670f9cefb1f8a0aa118f59bccb8983bf3dd
parenta20b12450f19c6b0ede97108ff48c2fa6b2e83f6
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