Skip to content

Commit fbf081e

Browse files
windhlgregkh
authored andcommitted
media: c8sectpfe: Add of_node_put() when breaking out of loop
[ Upstream commit 63ff05a ] 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: c5f5d0f ("[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>
1 parent 2a7330d commit fbf081e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ static int configure_channels(struct c8sectpfei *fei)
940940
if (ret) {
941941
dev_err(fei->dev,
942942
"configure_memdma_and_inputblock failed\n");
943+
of_node_put(child);
943944
goto err_unmap;
944945
}
945946
index++;

0 commit comments

Comments
 (0)