linux-stable/tools/power/x86
Samasth Norway Ananda 51a9b20a04 tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num()
[ Upstream commit f85450f134 ]

In function get_pkg_num() if fopen_or_die() succeeds it returns a file
pointer to be used. But fclose() is never called before returning from
the function.

Signed-off-by: Samasth Norway Ananda <samasth.norway.ananda@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 13:04:58 +02:00
..
amd_pstate_tracer tools/power/x86/amd_pstate_tracer: Add tracer tool for AMD P-state 2022-03-09 19:53:01 +01:00
intel_pstate_tracer tools/power/x86/intel_pstate_tracer: make tracer as a module 2022-03-09 19:53:01 +01:00
intel-speed-select tools/power/x86/intel-speed-select: Add Emerald Rapid quirk 2023-03-10 09:33:51 +01:00
turbostat tools/power/turbostat: Enable the C-state Pre-wake printing 2023-11-28 17:07:06 +00:00
x86_energy_perf_policy tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num() 2024-04-13 13:04:58 +02:00