diff options
| author | Lu Baolu <baolu.lu@linux.intel.com> | 2026-09-28 11:27:19 +0800 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2026-09-28 10:17:42 +0200 |
| commit | 91b55eb171cb72c9d0bb8c5bb1dfb32606a2cca7 (patch) | |
| tree | 3b498f0411c6d0849c68cc32b86d2122447b37f1 /scripts/basic/split-include.c | |
| parent | 07a64cbe15c4b0bf1d55208f3e945ba8a53075a0 (diff) | |
| download | linux-91b55eb171cb72c9d0bb8c5bb1dfb32606a2cca7.tar.gz linux-91b55eb171cb72c9d0bb8c5bb1dfb32606a2cca7.zip | |
iommu/vt-d: Use old domain parameter when attaching the blocking domain
blocking_domain_attach_dev() drops the old domain’s iopf reference using
info->domain, but that value may already be cleared by
device_block_translation().
On attach failure fallback paths, this can cause the function to drop a
NULL-domain ref instead of @old, leaking the real old-domain reference.
Repeated leaks grow info->iopf_refcount, keep the device stuck on the
iopf queue, and can trigger WARN_ON(info->iopf_refcount) when PRI is
disabled.
Use the core-provided @old parameter directly. It always identifies the
correct domain to release and matches other attach paths.
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
