diff options
author | Artem Chernyshev <artem.chernyshev@red-soft.ru> | 2024-07-16 15:55:14 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-07-23 17:09:28 +0100 |
commit | 630482ee0653decf9e2482ac6181897eb6cde5b8 (patch) | |
tree | d9d5ba310792521875b0c3bec2e3e72739ee7e22 /rust/kernel/workqueue.rs | |
parent | 8b6c32e831ef4496b51a68ddc5be9bb9e8d2337d (diff) |
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 'rust/kernel/workqueue.rs')
0 files changed, 0 insertions, 0 deletions