media: c8sectpfe: Add of_node_put() when breaking out of loop
[platform/kernel/linux-starfive.git] / drivers / media / platform / st / sti / c8sectpfe / c8sectpfe-core.c
index cefe6b7..1dbb89f 100644 (file)
@@ -925,6 +925,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++;