diff options
author | Miaoqian Lin <[email protected]> | 2022-06-06 10:42:52 +0400 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2022-06-30 22:03:58 -0500 |
commit | e6e0951414a314e7db3e9e24fd924b3e15515288 (patch) | |
tree | c20ddbfd031250bfdb157726f7f5e68eca093fa0 /drivers/usb/cdns3/cdns3-trace.c | |
parent | a3e7259f9ebe04054dc202b9b9f887abf3e4b12a (diff) |
soc: qcom: aoss: Fix refcount leak in qmp_cooling_devices_register
Every iteration of for_each_available_child_of_node() decrements
the reference count of the previous node.
When breaking early from a for_each_available_child_of_node() loop,
we need to explicitly call of_node_put() on the child node.
Add missing of_node_put() to avoid refcount leak.
Fixes: 05589b30b21a ("soc: qcom: Extend AOSS QMP driver to support resources that are used to wake up the SoC.")
Signed-off-by: Miaoqian Lin <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions