forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
kernel/drivers/dma/xilinx/xilinx_dma.c
....@@ -3119,8 +3119,10 @@
31193119 /* Initialize the channels */
31203120 for_each_child_of_node(node, child) {
31213121 err = xilinx_dma_child_probe(xdev, child);
3122
- if (err < 0)
3122
+ if (err < 0) {
3123
+ of_node_put(child);
31233124 goto error;
3125
+ }
31243126 }
31253127
31263128 if (xdev->dma_config->dmatype == XDMA_TYPE_VDMA) {