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

Commit 70c12922 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm: arm: Fix BUG() while do iova range checking"

parents a3cb38f7 30a5c340
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1392,7 +1392,8 @@ static inline void __free_iova(struct dma_iommu_mapping *mapping,

	start = (addr - bitmap_base) >>	PAGE_SHIFT;

	if (addr + size > bitmap_base + mapping_size) {
	if ((addr + size - 1 > addr) &&
		(addr + size - 1 > bitmap_base + mapping_size - 1)) {
		/*
		 * The address range to be freed reaches into the iova
		 * range of the next bitmap. This should not happen as