diff options
| author | Suman Anna <s-anna@ti.com> | 2018-05-31 17:21:43 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-26 07:54:02 +0800 |
| commit | 993b6091994aca8791d8e384277bdae9faa03a27 (patch) | |
| tree | 386da9aaa365d95cef132a6510a276a8a2eea67c /tools/perf/scripts/python/stackcollapse.py | |
| parent | 52e91680cbd42fc2de610d6432fa28a47ab2d402 (diff) | |
cpufreq: ti-cpufreq: Fix an incorrect error return value
commit e5d295b06d69a1924665a16a4987be475addd00f upstream.
Commit 05829d9431df (cpufreq: ti-cpufreq: kfree opp_data when
failure) has fixed a memory leak in the failure path, however
the patch returned a positive value on get_cpu_device() failure
instead of the previous negative value. Fix this incorrect error
return value properly.
Fixes: 05829d9431df (cpufreq: ti-cpufreq: kfree opp_data when failure)
Cc: 4.14+ <stable@vger.kernel.org> # v4.14+
Signed-off-by: Suman Anna <s-anna@ti.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
