]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu: Free context bitmap in the err path of arm_smmu_init_domain_context
authorLiu Xiang <liuxiang_1999@126.com>
Mon, 16 Sep 2019 13:53:00 +0000 (21:53 +0800)
committerWill Deacon <will@kernel.org>
Tue, 1 Oct 2019 11:13:16 +0000 (12:13 +0100)
commit7202f38b2db54d363b6df9b382ba1ce10ef2dd18
treede27615399d325ff46a3d8f7f762bf334e187bd3
parent83b4b06b7408ce798a220098fbeac6cb0a1db352
iommu/arm-smmu: Free context bitmap in the err path of arm_smmu_init_domain_context

When alloc_io_pgtable_ops is failed, context bitmap which is just allocated
by __arm_smmu_alloc_bitmap should be freed to release the resource.

Signed-off-by: Liu Xiang <liuxiang_1999@126.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu.c