OpenCloudOS-Kernel/tools/power
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
..
acpi ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
cpupower cpupower: fix reference to nonexistent document 2023-11-20 11:59:33 +01:00
pm-graph PM: tools: Fix sleepgraph syntax error 2023-12-03 07:33:04 +01:00
x86 tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num() 2024-04-13 13:07:31 +02:00