summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorLiang He <windhl@126.com>2022-07-19 16:10:23 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2022-12-07 17:58:46 +0100
commit63ff05a1ad242a5a0f897921c87b70d601bda59c (patch)
tree1ad17341beb7d40286f0fc9e4fe6632a66eb2e5d /drivers/media
parentmedia: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y (diff)
downloadlinux-63ff05a1ad242a5a0f897921c87b70d601bda59c.tar.xz
linux-63ff05a1ad242a5a0f897921c87b70d601bda59c.zip
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
index 4c5027a0480d..c38b62d4f1ae 100644
--- a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
+++ b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
@@ -927,6 +927,7 @@ static int configure_channels(struct c8sectpfei *fei)
if (ret) {
dev_err(fei->dev,
"configure_memdma_and_inputblock failed\n");
+ of_node_put(child);
goto err_unmap;
}
index++;