summaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2014-04-17 04:05:02 +0200
committerIngo Molnar <mingo@kernel.org>2014-05-07 11:51:32 +0200
commit6a7cd273dc4bc3246f37ebe874754a54ccb29141 (patch)
treeb8f72dcd5798fea10a9471baf74f89f0f99e3e83 /kernel/sched
parentsched/deadline: Fix sched_yield() behavior (diff)
downloadlinux-6a7cd273dc4bc3246f37ebe874754a54ccb29141.tar.xz
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.c4
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);
}