[PATCH 0/7] fix possible object reference leaks in cpufreq

From: Wen Yang
Date: Sun Mar 31 2019 - 21:38:23 EST


The call to of_get_cpu_node/of_find_compatible_node/of_parse_phandle...
returns a node pointer with refcount incremented thus it must be
explicitly decremented after the last usage.

This patch series fix those possible object reference leaks in cpufreq.

Wen Yang (7):
cpufreq: ap806: fix possible object reference leak
cpufreq: imx6q: fix possible object reference leak
cpufreq: kirkwood: fix possible object reference leak
cpufreq: maple: fix possible object reference leak
cpufreq/pasemi: fix possible object reference leak
cpufreq: pmac32: fix possible object reference leak
cpufreq: ppc_cbe: fix possible object reference leak

drivers/cpufreq/armada-8k-cpufreq.c | 1 +
drivers/cpufreq/imx6q-cpufreq.c | 4 ++--
drivers/cpufreq/kirkwood-cpufreq.c | 19 +++++++++++--------
drivers/cpufreq/maple-cpufreq.c | 2 +-
drivers/cpufreq/pasemi-cpufreq.c | 1 +
drivers/cpufreq/pmac32-cpufreq.c | 2 ++
drivers/cpufreq/ppc_cbe_cpufreq.c | 1 +
7 files changed, 19 insertions(+), 11 deletions(-)

--
2.9.5