aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorLu Baolu <[email protected]>2023-08-09 20:47:59 +0800
committerJoerg Roedel <[email protected]>2023-08-09 17:44:38 +0200
commit37f900e7180ac67c73dcfae308625c87194025c0 (patch)
treee05c1d25f2c15e0062a08d6114d6ca464ea70280 /lib/test_fortify/write_overflow-strncpy-src.c
parent154786235d0156ddce9575f13e23f3169e688435 (diff)
iommu/vt-d: Prepare for set_dev_pasid callback
The domain_flush_pasid_iotlb() helper function is used to flush the IOTLB entries for a given PASID. Previously, this function assumed that RID2PASID was only used for the first-level DMA translation. However, with the introduction of the set_dev_pasid callback, this assumption is no longer valid. Add a check before using the RID2PASID for PASID invalidation. This check ensures that the domain has been attached to a physical device before using RID2PASID. Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Jacob Pan <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions