diff options
author | Liang He <[email protected]> | 2022-07-20 15:32:34 +0800 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2022-09-05 11:53:46 +0530 |
commit | f9fdb0b86f087c2b7f6c6168dd0985a3c1eda87e (patch) | |
tree | eebfa689f6f5660b667e104d894b1ff8f4b836c5 /scripts/gdb/linux | |
parent | 8f2b6bc79c32f0fa60df000ae387a790ec80eae9 (diff) |
dmaengine: ti: k3-udma-private: Fix refcount leak bug in of_xudma_dev_get()
We should call of_node_put() for the reference returned by
of_parse_phandle() in fail path or when it is not used anymore.
Here we only need to move the of_node_put() before the check.
Fixes: d70241913413 ("dmaengine: ti: k3-udma: Add glue layer for non DMAengine users")
Signed-off-by: Liang He <[email protected]>
Acked-by: Peter Ujfalusi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions