OpenCloudOS-Kernel/tools/power/x86
Samasth Norway Ananda cf21eb6a9f tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num()
[ Upstream commit f85450f134f0b4ca7e042dc3dc89155656a2299d ]

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:07:31 +02:00
..
amd_pstate_tracer PM: tools: use canonical ftrace path 2023-02-02 15:45:35 +01:00
intel-speed-select tools/power/x86/intel-speed-select: v1.17 release 2023-08-09 08:57:58 -07:00
intel_pstate_tracer PM: tools: use canonical ftrace path 2023-02-02 15:45:35 +01:00
turbostat tools/power/turbostat: Enable the C-state Pre-wake printing 2023-11-28 17:19:54 +00:00
x86_energy_perf_policy tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num() 2024-04-13 13:07:31 +02:00