Skip to content

Commit

Permalink
AMD IOMMU: check for next_bit also in unmapped area
Browse files Browse the repository at this point in the history
Impact: fix possible use of stale IO/TLB entries

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Joerg Roedel committed Nov 18, 2008
1 parent 695b567 commit 8501c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8501c45

Please sign in to comment.