summaryrefslogtreecommitdiffstats
path: root/lib/compat_audit.c
diff options
context:
space:
mode:
authorArtem Chernyshev <artem.chernyshev@red-soft.ru>2024-07-16 14:55:14 +0200
committerWill Deacon <will@kernel.org>2024-07-23 18:09:28 +0200
commit630482ee0653decf9e2482ac6181897eb6cde5b8 (patch)
treed9d5ba310792521875b0c3bec2e3e72739ee7e22 /lib/compat_audit.c
parentMerge branch 'iommu/iommufd/paging-domain-alloc' into iommu/next (diff)
downloadlinux-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 'lib/compat_audit.c')
0 files changed, 0 insertions, 0 deletions