mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
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: c5f5d0f997
("[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>
This commit is contained in:
parent
7655c342db
commit
63ff05a1ad
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user