summaryrefslogtreecommitdiff
path: root/drivers/vfio/mdev
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@nvidia.com>2021-07-21 16:05:48 +0300
committerAlex Williamson <alex.williamson@redhat.com>2021-08-03 00:23:42 +0300
commite7500b3ede2c66380a7e9faa6a81e6df2f8e4e55 (patch)
tree389676dfbb3ccdd32302cfc93837b77dbb39ae4d /drivers/vfio/mdev
parent26c22cfde5dd6e63f25c48458b0185dcb0fbb2fd (diff)
downloadlinux-e7500b3ede2c66380a7e9faa6a81e6df2f8e4e55.tar.xz
vfio/pci: Make vfio_pci_regops->rw() return ssize_t
The only implementation of this in IGD returns a -ERRNO which is implicitly cast through a size_t and then casted again and returned as a ssize_t in vfio_pci_rw(). Fix the vfio_pci_regops->rw() return type to be ssize_t so all is consistent. Fixes: 28541d41c9e0 ("vfio/pci: Add infrastructure for additional device specific regions") Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com> Link: https://lore.kernel.org/r/0-v3-5db12d1bf576+c910-vfio_rw_jgg@nvidia.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/mdev')
0 files changed, 0 insertions, 0 deletions