mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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: Liam Mark <lmark@codeaurora.org>
This commit is contained in:
parent
e15f370e91
commit
2f573c4b5b
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue