diff options
| author | Lu Baolu <baolu.lu@linux.intel.com> | 2026-09-28 11:27:21 +0800 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2026-09-28 10:17:43 +0200 |
| commit | 5fbb0fa7327667ade8fa61921425bd4f8803e272 (patch) | |
| tree | 8d409754eae30c1b7e714b5e84e8b1b404d44f90 /scripts/basic/split-include.c | |
| parent | 83871c3ae10e3dce95408175df94ecfa0280e15f (diff) | |
| download | linux-5fbb0fa7327667ade8fa61921425bd4f8803e272.tar.gz linux-5fbb0fa7327667ade8fa61921425bd4f8803e272.zip | |
iommu/vt-d: Drop old iopf ref only after attach succeeds
identity_domain_attach_dev() currently removes the old domain’s iopf
reference before programming pass-through. If pass-through setup fails,
attach fails but the old domain is still effectively attached — now
with its IOPF ref already dropped.
This can undercount info->iopf_refcount and may disable iopf queue
handling while the old domain can still issue page requests.
Fix it by removing the old domain’s iopf reference only after
pass-through setup succeeds, matching other attach paths.
Fixes: 236dd58fabd2 ("iommu/vt-d: Fix iopf_refcount leak on RID domain replacement")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
