diff options
author | Artem Chernyshev <artem.chernyshev@red-soft.ru> | 2024-07-16 14:55:14 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-07-23 18:09:28 +0200 |
commit | 630482ee0653decf9e2482ac6181897eb6cde5b8 (patch) | |
tree | d9d5ba310792521875b0c3bec2e3e72739ee7e22 /drivers/mfd/act8945a.c | |
parent | Merge branch 'iommu/iommufd/paging-domain-alloc' into iommu/next (diff) | |
download | linux-630482ee0653decf9e2482ac6181897eb6cde5b8.tar.xz linux-630482ee0653decf9e2482ac6181897eb6cde5b8.zip |
iommu: sprd: Avoid NULL deref in sprd_iommu_hw_en
In sprd_iommu_cleanup() before calling function sprd_iommu_hw_en()
dom->sdev is equal to NULL, which leads to null dereference.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 9afea57384d4 ("iommu/sprd: Release dma buffer to avoid memory leak")
Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Reviewed-by: Chunyan Zhang <zhang.lyra@gmail.com>
Link: https://lore.kernel.org/r/20240716125522.3690358-1-artem.chernyshev@red-soft.ru
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/mfd/act8945a.c')
0 files changed, 0 insertions, 0 deletions