diff options
author | Miaoqian Lin <[email protected]> | 2022-06-02 08:24:30 +0400 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2022-06-30 21:50:46 -0500 |
commit | 92a563fcf14b3093226fb36f12e9b5cf630c5a5d (patch) | |
tree | 83ec0697ce52459b041cca7f8ea511c72511d488 /drivers/usb/cdns3/cdns3-trace.c | |
parent | 99e7e16445c41e44a6f678a376d55d277289b60d (diff) |
soc: qcom: ocmem: Fix refcount leak in of_get_ocmem
of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
Add missing of_node_put() to avoid refcount leak.
of_node_put() will check NULL pointer.
Fixes: 88c1e9404f1d ("soc: qcom: add OCMEM driver")
Signed-off-by: Miaoqian Lin <[email protected]>
Reviewed-by: Brian Masney <[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