diff options
author | Miaoqian Lin <[email protected]> | 2022-05-23 18:42:54 +0400 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2022-07-12 12:25:33 +0200 |
commit | b5899a3e2f783a27b268e38d37f9b24c71bddf45 (patch) | |
tree | f2ade269f137a37c8a0fb95a65dec757f56cf0d7 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 97904a59855c7ac7c613085bc6bdc550d48524ff (diff) |
mmc: sdhci-of-esdhc: Fix refcount leak in esdhc_signal_voltage_switch
of_find_matching_node() 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() checks null pointer.
Fixes: ea35645a3c66 ("mmc: sdhci-of-esdhc: add support for signal voltage switch")
Signed-off-by: Miaoqian Lin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions