summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2026-09-28 11:27:21 +0800
committerJoerg Roedel <joerg.roedel@amd.com>2026-09-28 10:17:43 +0200
commit5fbb0fa7327667ade8fa61921425bd4f8803e272 (patch)
tree8d409754eae30c1b7e714b5e84e8b1b404d44f90 /scripts/basic
parent83871c3ae10e3dce95408175df94ecfa0280e15f (diff)
downloadlinux-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')
0 files changed, 0 insertions, 0 deletions