kernel_samsung_a53x/tools/power
Samasth Norway Ananda 1603b0d00e 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-11-19 09:23:13 +01:00
..
acpi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpupower Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pm-graph Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x86 tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num() 2024-11-19 09:23:13 +01:00