diff options
author | Li Zefan <lizefan@huawei.com> | 2014-04-17 10:05:02 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-05-07 11:51:32 +0200 |
commit | 6a7cd273dc4bc3246f37ebe874754a54ccb29141 (patch) | |
tree | b8f72dcd5798fea10a9471baf74f89f0f99e3e83 /kernel/sched | |
parent | 5bfd126e80dca70431aef8fdbc1cf14535f3c338 (diff) | |
download | talos-obmc-linux-6a7cd273dc4bc3246f37ebe874754a54ccb29141.tar.gz talos-obmc-linux-6a7cd273dc4bc3246f37ebe874754a54ccb29141.zip |
sched/deadline: Fix memory leak
Free cpudl->free_cpus allocated in cpudl_init().
Signed-off-by: Li Zefan <lizefan@huawei.com>
Acked-by: Juri Lelli <juri.lelli@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: <stable@vger.kernel.org> # 3.14+
Link: http://lkml.kernel.org/r/534F36CE.2000409@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/cpudeadline.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/sched/cpudeadline.c b/kernel/sched/cpudeadline.c index 5b9bb42b2d47..ab001b5d5048 100644 --- a/kernel/sched/cpudeadline.c +++ b/kernel/sched/cpudeadline.c @@ -210,7 +210,5 @@ int cpudl_init(struct cpudl *cp) */ void cpudl_cleanup(struct cpudl *cp) { - /* - * nothing to do for the moment - */ + free_cpumask_var(cp->free_cpus); } |