]> git.baikalelectronics.ru Git - kernel.git/commit
media: c8sectpfe: Add of_node_put() when breaking out of loop
authorLiang He <windhl@126.com>
Tue, 19 Jul 2022 14:10:23 +0000 (22:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:12 +0000 (11:41 +0100)
commitf47e73ebad470437fd3dd267b20297d48b7e6527
tree997f9088641e81e3adf2d71ba3d9f9d8bc311dd5
parent98654da207e77703900c168a375ab483b16531db
media: c8sectpfe: Add of_node_put() when breaking out of loop

[ Upstream commit b2e4032215c0a9e97e9afe75b851a484b23a6fc4 ]

In configure_channels(), we should call of_node_put() when breaking
out of for_each_child_of_node() which will automatically increase
and decrease the refcount.

Fixes: b754abbeb59e ("[media] c8sectpfe: STiH407/10 Linux DVB demux support")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c