Skip to content

Commit 8123b0b

Browse files
yiliu1765joergroedel
authored andcommitted
iommu/vt-d: Use pasid_pte_is_present() helper function
Use the pasid_pte_is_present() helper for present bit check in the intel_pasid_tear_down_entry(). Signed-off-by: Liu Yi L <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 9ddc348 commit 8123b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/intel/pasid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ void intel_pasid_tear_down_entry(struct intel_iommu *iommu, struct device *dev,
517517
if (WARN_ON(!pte))
518518
return;
519519

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

523523
did = pasid_get_domain_id(pte);

0 commit comments

Comments
 (0)