vfio/pci: Fix handling of pci use accessor return codes
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 24 Jan 2021 15:35:41 +0000 (16:35 +0100)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 1 Feb 2021 20:40:52 +0000 (13:40 -0700)
commit37a682ffbe2ab31b51123b67bd30ab42d1131cc1
tree6dcec007756797da6197fce246fd1ef2a67ce6cd
parent010321565a7d2cd73eeed6f589693ce752e154bd
vfio/pci: Fix handling of pci use accessor return codes

The pci user accessors return negative errno's on error.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
[aw: drop Fixes tag, pcibios_err_to_errno() behaves correctly for -errno]
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_igd.c