Skip to content
Commit 8092775c authored by Aleksandr Aprelkov's avatar Aleksandr Aprelkov Committed by Greg Kroah-Hartman
Browse files

iommu/arm-smmu-v3: Free MSIs in case of ENOMEM



[ Upstream commit 80fea979 ]

If devm_add_action() returns -ENOMEM, then MSIs are allocated but not
not freed on teardown. Use devm_add_action_or_reset() instead to keep
the static analyser happy.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: default avatarAleksandr Aprelkov <aaprelkov@usergate.com>
Link: https://lore.kernel.org/r/20240403053759.643164-1-aaprelkov@usergate.com


[will: Tweak commit message, remove warning message]
Signed-off-by: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 10c19cf7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment