diff options
-rw-r--r-- | drivers/vfio/vfio_iommu_type1.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c index 0f353f519574..bd6f293c4ebd 100644 --- a/drivers/vfio/vfio_iommu_type1.c +++ b/drivers/vfio/vfio_iommu_type1.c | |||
@@ -1332,8 +1332,11 @@ static int vfio_iommu_type1_attach_group(void *iommu_data, | |||
1332 | if (ret) | 1332 | if (ret) |
1333 | goto out_detach; | 1333 | goto out_detach; |
1334 | 1334 | ||
1335 | if (resv_msi && iommu_get_msi_cookie(domain->domain, resv_msi_base)) | 1335 | if (resv_msi) { |
1336 | goto out_detach; | 1336 | ret = iommu_get_msi_cookie(domain->domain, resv_msi_base); |
1337 | if (ret) | ||
1338 | goto out_detach; | ||
1339 | } | ||
1337 | 1340 | ||
1338 | list_add(&domain->next, &iommu->domain_list); | 1341 | list_add(&domain->next, &iommu->domain_list); |
1339 | 1342 | ||