diff options
author | Li Zefan <lizefan@huawei.com> | 2014-04-17 10:05:02 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-11 11:54:08 -0700 |
commit | 75ba5916c4f67c3086650986eeda0a1114846f5f (patch) | |
tree | 6020ed34282f38ee0023cd60ad48b4ea7835451a /kernel | |
parent | e991c3535507139fd2e8079113131557257f725e (diff) | |
download | kernel-common-75ba5916c4f67c3086650986eeda0a1114846f5f.tar.gz kernel-common-75ba5916c4f67c3086650986eeda0a1114846f5f.tar.bz2 kernel-common-75ba5916c4f67c3086650986eeda0a1114846f5f.zip |
sched/deadline: Fix memory leak
commit 6a7cd273dc4bc3246f37ebe874754a54ccb29141 upstream.
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>
Link: http://lkml.kernel.org/r/534F36CE.2000409@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
-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); } |