]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/tegra-smmu: Fix missing put_device() call in tegra_smmu_find
authorMiaoqian Lin <linmq006@gmail.com>
Fri, 7 Jan 2022 08:09:11 +0000 (08:09 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 28 Feb 2022 13:01:57 +0000 (14:01 +0100)
commit13f743527bf9ebb53ae5f70804c1bb4df99402e0
treea65623e32351160b77f14c02d0054389e52a1fa9
parent8c434ecc27880ae43cc5adea4ae6e0420f5c949b
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: 279b9d871c9d ("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>
drivers/iommu/tegra-smmu.c