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

Commit 2f573c4b authored by Liam Mark's avatar Liam Mark
Browse files

ANDROID: iommu/iova: Fix to use __alloc_and_insert_iova_best_fit

Looks like there was a merge issue when pulling the following upstream
change:
https://lore.kernel.org/lkml/7239ddd532e94a4371289f3be23c66a3@codeaurora.org/



Fix so that it correctly calls __alloc_and_insert_iova_best_fit when
best_fit is set.

Bug: 149544392
Change-Id: I6b9992dedf4991dee088e77767e0dc077758b581
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
parent e15f370e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -386,7 +386,7 @@ alloc_iova(struct iova_domain *iovad, unsigned long size,
		return NULL;

	if (iovad->best_fit) {
		ret = __alloc_and_insert_iova_range(iovad, size,
		ret = __alloc_and_insert_iova_best_fit(iovad, size,
				limit_pfn + 1, new_iova, size_aligned);
	} else {
		ret = __alloc_and_insert_iova_range(iovad, size, limit_pfn + 1,