summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2026-09-28 11:27:20 +0800
committerJoerg Roedel <joerg.roedel@amd.com>2026-09-28 10:17:42 +0200
commit83871c3ae10e3dce95408175df94ecfa0280e15f (patch)
treeeab5e2184cc0503e91f032d7fde844fb7b860b29 /scripts/basic/split-include.c
parent91b55eb171cb72c9d0bb8c5bb1dfb32606a2cca7 (diff)
downloadlinux-83871c3ae10e3dce95408175df94ecfa0280e15f.tar.gz
linux-83871c3ae10e3dce95408175df94ecfa0280e15f.zip
iommu/vt-d: Fix iopf refcount leak in nested attach
intel_nested_attach_dev() takes an iopf reference for the new domain but does not drop the possible reference from the old domain. This leaks info->iopf_refcount, can keep the device permanently on the iopf queue, and later triggers WARN_ON(info->iopf_refcount) when PRI is disabled. Fix this by dropping the possible reference from the old domain after the nested translation setup completes. Fixes: 17fce9d2336d9 ("iommu/vt-d: Put iopf enablement in domain attach path") 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