Commit 4c8ad9d
iommu: Use __iommu_group_set_domain() in iommu_change_dev_def_domain()
This is missing re-attach error handling if the attach fails, use the
common code.
The ugly "group->domain = prev_domain" will be cleaned in a later patch.
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/5-v5-1b99ae392328+44574-iommu_err_unwind_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent ecd60dc commit 4c8ad9d
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2946 | 2946 | | |
2947 | 2947 | | |
2948 | 2948 | | |
2949 | | - | |
| 2949 | + | |
| 2950 | + | |
2950 | 2951 | | |
2951 | 2952 | | |
2952 | 2953 | | |
2953 | | - | |
| 2954 | + | |
2954 | 2955 | | |
2955 | 2956 | | |
2956 | 2957 | | |
| |||
2962 | 2963 | | |
2963 | 2964 | | |
2964 | 2965 | | |
2965 | | - | |
2966 | 2966 | | |
2967 | 2967 | | |
2968 | 2968 | | |
| |||
0 commit comments