Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iommu: Revert pasid attachment only for the devices that have succeeded
There is no error hanlding now in __iommu_set_group_pasid(), it relies on the caller to loop all the devices to revert pasid attachment if the __iommu_set_group_pasid() failed. This is not perfect for the multi-device groups. It's better to handle the error within __iommu_set_group_pasid(), and only revert the devices that have succeeded. Suggested-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com>
- Loading branch information