aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorXiyu Yang <[email protected]>2021-06-10 10:49:20 +0800
committerWill Deacon <[email protected]>2021-06-11 11:39:17 +0100
commit7c8f176d6a3fa18aa0f8875da6f7c672ed2a8554 (patch)
tree1bfddf7e072df4bb07d581c135d9c7e26009255b /lib/mpi/mpi-sub-ui.c
parent1adf30f198c26539a62d761e45af72cde570413d (diff)
iommu/arm-smmu: Fix arm_smmu_device refcount leak in address translation
The reference counting issue happens in several exception handling paths of arm_smmu_iova_to_phys_hard(). When those error scenarios occur, the function forgets to decrease the refcount of "smmu" increased by arm_smmu_rpm_get(), causing a refcount leak. Fix this issue by jumping to "out" label when those error scenarios occur. Signed-off-by: Xiyu Yang <[email protected]> Signed-off-by: Xin Tan <[email protected]> Reviewed-by: Rob Clark <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions