diff options
| author | Qinxin Xia <[email protected]> | 2025-04-22 11:29:51 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2025-05-06 12:45:49 +0000 |
| commit | be5a2d3f8f9738ea1426e7d2243707164ed5bac2 (patch) | |
| tree | be3b4a8f2f6e8407d9f085dda1ecd30693dc1d20 /rust/helpers/platform.c | |
| parent | Linux 6.15-rc2 (diff) | |
| download | kernel-be5a2d3f8f9738ea1426e7d2243707164ed5bac2.tar.gz kernel-be5a2d3f8f9738ea1426e7d2243707164ed5bac2.zip | |
iommu/arm-smmu-v3: Fix incorrect return in arm_smmu_attach_dev
After commit 48e7b8e284e5 ("iommu/arm-smmu-v3: Remove
arm_smmu_domain_finalise() during attach"), an error code is not
returned on the attach path when the smmu does not match with the
domain. This causes problems with VFIO because
vfio_iommu_type1_attach_group() relies on this check to determine domain
compatability.
Re-instate the -EINVAL return value when the SMMU doesn't match on the
device attach path.
Fixes: 48e7b8e284e5 ("iommu/arm-smmu-v3: Remove arm_smmu_domain_finalise() during attach")
Signed-off-by: Qinxin Xia <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
