]> git.itanic.dy.fi Git - linux-stable/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)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 7 Dec 2022 16:58:46 +0000 (17:58 +0100)
commit63ff05a1ad242a5a0f897921c87b70d601bda59c
tree1ad17341beb7d40286f0fc9e4fe6632a66eb2e5d
parent7655c342dbc47a0781a793d91600ededff3b3a51
media: c8sectpfe: Add of_node_put() when breaking out of loop

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: c5f5d0f99794 ("[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>
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c