Skip to content

Commit

Permalink
iommu/vt-d: Use pasid_pte_is_present() helper function
Browse files Browse the repository at this point in the history
Use the pasid_pte_is_present() helper for present bit check in the
intel_pasid_tear_down_entry().

Signed-off-by: Liu Yi L <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20210817042425.1784279-1-yi.l.liu@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210818134852.1847070-9-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Liu Yi L authored and Joerg Roedel committed Aug 19, 2021
1 parent 9ddc348 commit 8123b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/intel/pasid.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ void intel_pasid_tear_down_entry(struct intel_iommu *iommu, struct device *dev,
if (WARN_ON(!pte))
return;

if (!(pte->val[0] & PASID_PTE_PRESENT))
if (!pasid_pte_is_present(pte))
return;

did = pasid_get_domain_id(pte);
Expand Down

0 comments on commit 8123b0b

Please sign in to comment.