mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
iommu: arm-smmu: Fix domain logger use-after-free
smmu_domain logger is freed as part of error handling in
arm_smmu_init_domain_context. But smmu_domain->logger is still non null.
This cause smmu_domain->logger to be accessed during domain free. Fix
this.
Fixes: f1746fc8a009 ("iommu: qti: Track iommu domains")
Change-Id: I82a7f9121b78ca9338d202694dbc0a98150f0c92
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
This commit is contained in:
parent
333b4ccb21
commit
841fe8d573
1 changed files with 1 additions and 0 deletions
|
|
@ -2102,6 +2102,7 @@ out_clear_smmu:
|
|||
smmu_domain->smmu = NULL;
|
||||
out_logger:
|
||||
iommu_logger_unregister(smmu_domain->logger);
|
||||
smmu_domain->logger = NULL;
|
||||
out_unlock:
|
||||
mutex_unlock(&smmu_domain->init_mutex);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue