Miaoqian Lin 9826e393e4 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: 765a9d1d02b2 ("iommu/tegra-smmu: Fix mc errors on tegra124-nyan")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20220107080915.12686-1-linmq006@gmail.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2022-02-28 14:01:57 +01:00
..
2021-11-06 14:36:12 -07:00
2021-04-07 10:54:29 +02:00
2022-01-31 16:49:54 +01:00
2020-11-23 14:16:55 +00:00
2022-01-31 16:49:54 +01:00
2021-08-12 13:15:02 +02:00
2021-02-01 11:31:19 +00:00
2022-01-31 16:49:54 +01:00