diff options
author | Jean-Philippe Brucker <jean-philippe.brucker@arm.com> | 2017-12-14 11:03:01 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-01-02 16:45:45 +0000 |
commit | 57d72e159b60456c8bb281736c02ddd3164037aa (patch) | |
tree | fa8a71f06bc09e1943cdba7be57c74687868a8b4 /include/uapi | |
parent | 30a7acd573899fd8b8ac39236eff6468b195ac7d (diff) | |
download | linux-57d72e159b60456c8bb281736c02ddd3164037aa.tar.gz linux-57d72e159b60456c8bb281736c02ddd3164037aa.tar.bz2 linux-57d72e159b60456c8bb281736c02ddd3164037aa.zip |
iommu/arm-smmu-v3: Don't free page table ops twice
Kasan reports a double free when finalise_stage_fn fails: the io_pgtable
ops are freed by arm_smmu_domain_finalise and then again by
arm_smmu_domain_free. Prevent this by leaving pgtbl_ops empty on failure.
Cc: <stable@vger.kernel.org>
Fixes: 48ec83bcbcf5 ("iommu/arm-smmu: Add initial driver support for ARM SMMUv3 devices")
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions