diff options
| author | Artem Chernyshev <[email protected]> | 2024-07-16 12:55:14 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2024-07-23 16:09:28 +0000 |
| commit | 630482ee0653decf9e2482ac6181897eb6cde5b8 (patch) | |
| tree | d9d5ba310792521875b0c3bec2e3e72739ee7e22 /rust/helpers.c | |
| parent | Merge branch 'iommu/iommufd/paging-domain-alloc' into iommu/next (diff) | |
| download | kernel-630482ee0653decf9e2482ac6181897eb6cde5b8.tar.gz kernel-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 <[email protected]>
Reviewed-by: Chunyan Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
