]> git.ipfire.org Git - thirdparty/kernel/stable.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:15:42 +0000 (13:15 +0200)
commit319b8d737333f54605baf9d7c68962acb5327dd9
treeee0657168020348fe571aa82dad8dffedf11ccfb
parent9183a37d3e6190cc34291ababb789c2cdec995d3
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