提交 53b3b65a 编写于 作者: J Joerg Roedel

iommu/amd: Flush IOMMU TLB on __map_single error path

There have been present PTEs which in theory could have made
it to the IOMMU TLB. Flush the addresses out on the error
path to make sure no stale entries remain.
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 08c5fb93
...@@ -2493,6 +2493,8 @@ static dma_addr_t __map_single(struct device *dev, ...@@ -2493,6 +2493,8 @@ static dma_addr_t __map_single(struct device *dev,
dma_ops_domain_unmap(dma_dom, start); dma_ops_domain_unmap(dma_dom, start);
} }
domain_flush_pages(&dma_dom->domain, address, size);
dma_ops_free_addresses(dma_dom, address, pages); dma_ops_free_addresses(dma_dom, address, pages);
return DMA_ERROR_CODE; return DMA_ERROR_CODE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册