diff options
author | Prarit Bhargava <prarit@redhat.com> | 2019-09-05 15:03:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-05 16:12:05 +0300 |
commit | cd7a1295ab69e3ed3f7b858f8a12f218106e1e31 (patch) | |
tree | 64c36ffc9a0c6f0ed649dccabbbd59badcb10242 /.cocciconfig | |
parent | 7407d0a392072fa915f46d313a0a7c7f362a6e1d (diff) | |
download | linux-cd7a1295ab69e3ed3f7b858f8a12f218106e1e31.tar.xz |
tools/power/x86/intel-speed-select: Fix memory leak
[ Upstream commit 3bc3d30ca324bfc3045a1a7fe1f5fe5ad5d92fd9 ]
cpumasks are allocated by calling the alloc_cpu_mask() function and are
never free'd. They should be free'd after the commands have run.
Fix the memory leaks by calling free_cpu_set().
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: David Arcari <darcari@redhat.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions