Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8501c45c authored by Joerg Roedel's avatar Joerg Roedel
Browse files

AMD IOMMU: check for next_bit also in unmapped area



Impact: fix possible use of stale IO/TLB entries

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 695b5676
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -537,7 +537,7 @@ static void dma_ops_free_addresses(struct dma_ops_domain *dom,
	address >>= PAGE_SHIFT;
	iommu_area_free(dom->bitmap, address, pages);

	if (address + pages >= dom->next_bit)
	if (address >= dom->next_bit)
		dom->need_flush = true;
}