aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Zefan <[email protected]>2014-04-17 10:05:02 +0800
committerIngo Molnar <[email protected]>2014-05-07 11:51:32 +0200
commit6a7cd273dc4bc3246f37ebe874754a54ccb29141 (patch)
treeb8f72dcd5798fea10a9471baf74f89f0f99e3e83
parent5bfd126e80dca70431aef8fdbc1cf14535f3c338 (diff)
sched/deadline: Fix memory leak
Free cpudl->free_cpus allocated in cpudl_init(). Signed-off-by: Li Zefan <[email protected]> Acked-by: Juri Lelli <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: <[email protected]> # 3.14+ Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
-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);
}