summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/vfio_pci_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/vfio_pci_core.h b/include/linux/vfio_pci_core.h
index 7accd0eac457..4fa129fc5c64 100644
--- a/include/linux/vfio_pci_core.h
+++ b/include/linux/vfio_pci_core.h
@@ -244,10 +244,10 @@ static inline void __iomem __must_check *
vfio_pci_core_get_iomap(struct vfio_pci_core_device *vdev, unsigned int bar)
{
if (WARN_ON_ONCE(bar >= PCI_STD_NUM_BARS))
- return ERR_PTR(-EINVAL);
+ return IOMEM_ERR_PTR(-EINVAL);
if (WARN_ON_ONCE(!vdev->barmap[bar]))
- return ERR_PTR(-ENODEV);
+ return IOMEM_ERR_PTR(-ENODEV);
return vdev->barmap[bar];
}