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

Commit 0700edd6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu/iova: Fix underflow bug in __alloc_and_insert_iova_range"

parents 675a3819 817279f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ static int __alloc_and_insert_iova_range(struct iova_domain *iovad,
				break;	/* found a free slot */
		}
adjust_limit_pfn:
		limit_pfn = curr_iova->pfn_lo - 1;
		limit_pfn = curr_iova->pfn_lo ? (curr_iova->pfn_lo - 1) : 0;
move_left:
		prev = curr;
		curr = rb_prev(curr);