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

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

Merge "iommu/iova: Don't BUG on invalid PFNs"

parents 3b868e67 9b972b90
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -919,7 +919,9 @@ iova_magazine_free_pfns(struct iova_magazine *mag, struct iova_domain *iovad)
	for (i = 0 ; i < mag->size; ++i) {
		struct iova *iova = private_find_iova(iovad, mag->pfns[i]);

		BUG_ON(!iova);
		if (WARN_ON(!iova))
			continue;

		private_free_iova(iovad, iova);
	}