diff options
author | Wen Yang <[email protected]> | 2019-04-01 09:37:54 +0800 |
---|---|---|
committer | Viresh Kumar <[email protected]> | 2019-04-08 15:37:30 +0530 |
commit | 233298032803f2802fe99892d0de4ab653bfece4 (patch) | |
tree | bd6d180d3e0830c07b9bf83dc4275f05adaa1a36 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 8d10dc28a9ea6e8c02e825dab28699f3c72b02d9 (diff) |
cpufreq: ppc_cbe: fix possible object reference leak
The call to of_get_cpu_node returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.
Detected by coccinelle with the following warnings:
./drivers/cpufreq/ppc_cbe_cpufreq.c:89:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 76, but without a corresponding object release within this function.
./drivers/cpufreq/ppc_cbe_cpufreq.c:89:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 76, but without a corresponding object release within this function.
Signed-off-by: Wen Yang <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Viresh Kumar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions