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 10:35:05 +0000 (12:35 +0200)
commita8d772c7b8537ed6cfd2907f9ebba038320c4fe5
tree29ee28c20bfd852d1d4691b4307e98140ae45b49
parent6225501072d3f2280eaad1e10a26a019fd5492a2
media: exynos4-is: fimc-is: Add of_node_put() when breaking out of loop

[ Upstream commit 211f8304fa21aaedc2c247f0c9d6c7f1aaa61ad7 ]

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: 9a761e436843 ("[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