Merge tag 'vfio-v4.10-rc6' of git://github.com/awilliam/linux-vfio

Pull VFIO fix from Alex Williamson:
"mdev IOMMU groups are not yet compatible with the powerpc SPAPR IOMMU
backend, detect and fail group attach (Greg Kurz)"

* tag 'vfio-v4.10-rc6' of git://github.com/awilliam/linux-vfio:
vfio/spapr: fail tce_iommu_attach_group() when iommu_data is null

+4
+4
drivers/vfio/vfio_iommu_spapr_tce.c
··· 1270 /* pr_debug("tce_vfio: Attaching group #%u to iommu %p\n", 1271 iommu_group_id(iommu_group), iommu_group); */ 1272 table_group = iommu_group_get_iommudata(iommu_group); 1273 1274 if (tce_groups_attached(container) && (!table_group->ops || 1275 !table_group->ops->take_ownership ||
··· 1270 /* pr_debug("tce_vfio: Attaching group #%u to iommu %p\n", 1271 iommu_group_id(iommu_group), iommu_group); */ 1272 table_group = iommu_group_get_iommudata(iommu_group); 1273 + if (!table_group) { 1274 + ret = -ENODEV; 1275 + goto unlock_exit; 1276 + } 1277 1278 if (tce_groups_attached(container) && (!table_group->ops || 1279 !table_group->ops->take_ownership ||