]> git.baikalelectronics.ru Git - kernel.git/commit
media: exynos4-is: fimc-is: Add of_node_put() when breaking out of loop
authorLiang He <windhl@126.com>
Wed, 20 Jul 2022 14:30:03 +0000 (16:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:36 +0000 (13:22 +0200)
commit63e56aaa2282828135ed11ae200b1970ef72f292
tree220cdd3ac5b8cd62a05856d8ff50194d7dc72960
parent92872e00aac1526d7052a90ede7b9b13e36d7c27
media: exynos4-is: fimc-is: Add of_node_put() when breaking out of loop

[ Upstream commit 38c5dfc5c495dd8a595cfe06b11233e03a6c90b7 ]

In fimc_is_register_subdevs(), we need to call of_node_put() for
the reference 'i2c_bus' when breaking out of the
for_each_compatible_node() which has increased the refcount.

Fixes: 6b4c021ddb69 ("[media] exynos4-is: Add Exynos4x12 FIMC-IS driver")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/exynos4-is/fimc-is.c