We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed20c7 commit 3b498b6Copy full SHA for 3b498b6
drivers/vfio/vfio.c
@@ -605,7 +605,7 @@ int vfio_register_group_dev(struct vfio_device *device)
605
* VFIO always sets IOMMU_CACHE because we offer no way for userspace to
606
* restore cache coherency.
607
*/
608
- if (!iommu_capable(device->dev->bus, IOMMU_CAP_CACHE_COHERENCY))
+ if (!device_iommu_capable(device->dev, IOMMU_CAP_CACHE_COHERENCY))
609
return -EINVAL;
610
611
return __vfio_register_dev(device,
0 commit comments