linux/drivers/powercap
Dan Carpenter 6b08b4ee5e powercap: intel_rapl: Change an error pointer to NULL
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: 26096aed25 ("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>
2024-08-23 15:45:17 +02:00
..
arm_scmi_powercap.c
dtpm_cpu.c powercap: DTPM: Avoid explicit cpumask allocation on stack 2024-04-16 13:33:03 +02:00
dtpm_devfreq.c powercap/dtpm_devfreq: Use new Energy Model interface to get table 2024-02-08 15:00:31 +01:00
dtpm_subsys.h
dtpm.c powercap: dtpm: Fix kernel-doc for dtpm_create_hierarchy() function 2024-03-01 21:39:10 +01:00
idle_inject.c powercap: idle_inject: Simplify if condition 2024-06-07 20:57:20 +02:00
intel_rapl_common.c powercap: intel_rapl: Change an error pointer to NULL 2024-08-23 15:45:17 +02:00
intel_rapl_msr.c powercap: intel_rapl_msr: Switch to new Intel CPU model defines 2024-06-07 20:40:48 +02:00
intel_rapl_tpmi.c powercap: intel_rapl_tpmi: Enable PMU support 2024-04-30 21:10:37 +02:00
Kconfig
Makefile
powercap_sys.c