On Tue, 7 Dec 2021 19:33:15 +0800, yf.wang@mediatek.com wrote:
From: Yunfei Wang yf.wang@mediatek.com
In __arm_v7s_alloc_table function: iommu call kmem_cache_alloc to allocate page table, this function allocate memory may fail, when kmem_cache_alloc fails to allocate table, call virt_to_phys will be abnomal and return unexpected phys and goto out_free, then call kmem_cache_free to release table will trigger KE, __get_free_pages and free_pages have similar problem, so add error handle for page table allocation failure.
[...]
Applied to will (for-joerg/arm-smmu/updates), thanks!
[1/1] iommu/io-pgtable-arm-v7s: Add error handle for page table allocation failure https://git.kernel.org/will/c/a556cfe4cabc
Cheers,