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

Commit 22baad26 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 4ae367eb 6ec90cf9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1394,7 +1394,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