summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-06-16 23:08:02 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-17 15:50:07 +0200
commit0764fd10406f38bf6d86077a43301f0c35cc88f4 (patch)
tree640f97e14d70207a73ade6d02dc8d60a06fda210 /tools/perf/scripts/python
parent82aa033fef523ab4f0165afbc1c1fb0dadb89f94 (diff)
misc: rp1: do not put borrowed OF node
dev_of_node() returns the device's OF node without taking a new reference. rp1_probe() stores that borrowed pointer in rp1_node, but drops it with of_node_put() on both success and failure paths. Dropping a reference that was never acquired can underflow the node's refcount and leave later users with a stale OF node. Remove the of_node_put() calls and keep rp1_node as a borrowed pointer. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Reviewed-by: Andrea della Porta <andrea.porta@suse.com> Link: https://patch.msgid.link/20260616150802.52050-1-pengpeng@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions