]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Fix misuse of iommu_domain_identity_map()
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 22 Jun 2020 23:13:45 +0000 (07:13 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 23 Jun 2020 08:08:32 +0000 (10:08 +0200)
commitea883817e95c62484c55a936479e430119cb81b2
tree1999a430c4e8da99dc4e2e0562cbc87cc5ed9062
parentc41410ccc702e3ece834280555682e6791a1bd0e
iommu/vt-d: Fix misuse of iommu_domain_identity_map()

The iommu_domain_identity_map() helper takes start/end PFN as arguments.
Fix a misuse case where the start and end addresses are passed.

Fixes: c6068a7d5fe4a ("iommu/vt-d: Remove IOVA handling code from the non-dma_ops path")
Reported-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Cc: Tom Murphy <murphyt7@tcd.ie>
Link: https://lore.kernel.org/r/20200622231345.29722-7-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c