diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-08-23 15:51:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-09-30 16:29:34 +0200 |
commit | 47e0c6b594dea41e3b9ffbf74cbb6548f1212a9b (patch) | |
tree | 8f16c12b1538f020fc0ef76f17cdb205c9ffa88a /tools/perf/scripts/python/stackcollapse.py | |
parent | e872738e670ddd63e19f22d0d784f0bdf26ecba5 (diff) |
powercap: intel_rapl: Change an error pointer to NULL
commit 6b08b4ee5e60d8789aeb87250f718ef14bebb90e upstream.
The rapl_find_package_domain_cpuslocked() function is supposed to
return NULL on error.
This new error patch returns ERR_PTR(-EINVAL) but none of the callers
check for that so it would lead to an Oops.
Fixes: 26096aed255f ("powercap/intel_rapl: Fix the energy-pkg event for AMD CPUs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/fa719c6a-8d3b-4cca-9b43-bcd477ff6655@stanley.mountain
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