Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 04469eb

Browse files
committed
ANDROID: drivers/arm-smmu-v3-kvm: Free io_pgtable struct on domain free
When a domain is freed, it should also free the page table struct "arm_lpae_io_pgtable" which is per domain, as the domain is freed and this memory would be leaked. Bug: 277989609 Bug: 278749606 Change-Id: I6eaf00977d613d203f3918485d4cd8618ec40c9e Signed-off-by: Mostafa Saleh <[email protected]>
1 parent a9beab0 commit 04469eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iommu/arm/arm-smmu-v3/pkvm/io-pgtable-arm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ int kvm_arm_io_pgtable_free(struct io_pgtable *iopt)
136136
kvm_flush_dcache_to_poc(data->pgd, pgd_size);
137137

138138
__arm_lpae_free_pgtable(data, data->start_level, data->pgd);
139+
hyp_free(data);
139140
return 0;
140141
}
141142

0 commit comments

Comments
 (0)