]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/vt-d: Fix misplaced domain_attached assignment
authorBan ZuoXiang <bbaa@bbaa.fun>
Wed, 23 Jul 2025 12:04:23 +0000 (20:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:56:38 +0000 (08:56 +0200)
commitff7ccaadb0bf6b79a871e63ab6c50d3d68f83084
treee7136c7a8b73503d51705aab88240c775c98987c
parente82d8825f712d7c489b8d433cb0a1a6451711388
iommu/vt-d: Fix misplaced domain_attached assignment

Commit fb5873b779dd ("iommu/vt-d: Restore context entry setup order
for aliased devices") was incorrectly backported: the domain_attached
assignment was mistakenly placed in device_set_dirty_tracking()
instead of original identity_domain_attach_dev().

Fix this by moving the assignment to the correct function as in the
original commit.

Fixes: fb5873b779dd ("iommu/vt-d: Restore context entry setup order for aliased devices")
Closes: https://lore.kernel.org/linux-iommu/721D44AF820A4FEB+722679cb-2226-4287-8835-9251ad69a1ac@bbaa.fun/
Cc: stable@vger.kernel.org
Reported-by: Ban ZuoXiang <bbaa@bbaa.fun>
Signed-off-by: Ban ZuoXiang <bbaa@bbaa.fun>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/intel/iommu.c