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

This commit is contained in:
qctecmdr 2020-07-10 13:43:59 -07:00 • committed by Gerrit - the friendly Code Review server
commit 33620a8273

View file

@ -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);
}