Skip to content
Commit 9826e393 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Joerg Roedel
Browse files

iommu/tegra-smmu: Fix missing put_device() call in tegra_smmu_find



The reference taken by 'of_find_device_by_node()' must be released when
not needed anymore.
Add the corresponding 'put_device()' in the error handling path.

Fixes: 765a9d1d ("iommu/tegra-smmu: Fix mc errors on tegra124-nyan")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20220107080915.12686-1-linmq006@gmail.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent b0083376
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