diff options
author | Jerry Snitselaar <jsnitsel@redhat.com> | 2019-12-10 19:56:06 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-12-17 11:45:17 +0100 |
commit | d360211524bece6db9920f32c91808235290b51c (patch) | |
tree | 8316f7c786af466a4b0b45d76b3bf59390c28108 /crypto/serpent_generic.c | |
parent | iommu/vt-d: Fix dmar pte read access not set error (diff) | |
download | linux-d360211524bece6db9920f32c91808235290b51c.tar.xz linux-d360211524bece6db9920f32c91808235290b51c.zip |
iommu: set group default domain before creating direct mappings
iommu_group_create_direct_mappings uses group->default_domain, but
right after it is called, request_default_domain_for_dev calls
iommu_domain_free for the default domain, and sets the group default
domain to a different domain. Move the
iommu_group_create_direct_mappings call to after the group default
domain is set, so the direct mappings get associated with that domain.
Cc: Joerg Roedel <jroedel@suse.de>
Cc: Lu Baolu <baolu.lu@linux.intel.com>
Cc: iommu@lists.linux-foundation.org
Cc: stable@vger.kernel.org
Fixes: 7423e01741dd ("iommu: Add API to request DMA domain for device")
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'crypto/serpent_generic.c')
0 files changed, 0 insertions, 0 deletions