diff options
author | Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> | 2017-10-11 04:38:22 +0200 |
---|---|---|
committer | Cornelia Huck <cohuck@redhat.com> | 2017-10-16 11:14:48 +0200 |
commit | 4cebc5d6a6ff41c0266d235aa4854b062d34ad09 (patch) | |
tree | 41b1f670f9cefb1f8a0aa118f59bccb8983bf3dd /lib | |
parent | 688c29533ffc969773bc860d07d3a5f1995f5878 (diff) |
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions