linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sched/deadline: Fix memory leak
@ 2014-04-17  2:05 Li Zefan
  2014-04-17  7:22 ` Juri Lelli
  2014-05-08 10:41 ` [tip:sched/core] " tip-bot for Li Zefan
  0 siblings, 2 replies; 3+ messages in thread
From: Li Zefan @ 2014-04-17  2:05 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Steven Rostedt, Peter Zijlstra, Juri Lelli, LKML

Free cpudl->free_cpus allocated in cpudl_init().

Signed-off-by: Li Zefan <lizefan@huawei.com>
Cc: <stable@vger.kernel.org> # 3.14
---
 kernel/sched/cpudeadline.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/kernel/sched/cpudeadline.c b/kernel/sched/cpudeadline.c
index 5b9bb42..ab001b5 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);
 }
-- 
1.8.0.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] sched/deadline: Fix memory leak
  2014-04-17  2:05 [PATCH] sched/deadline: Fix memory leak Li Zefan
@ 2014-04-17  7:22 ` Juri Lelli
  2014-05-08 10:41 ` [tip:sched/core] " tip-bot for Li Zefan
  1 sibling, 0 replies; 3+ messages in thread
From: Juri Lelli @ 2014-04-17  7:22 UTC (permalink / raw)
  To: Li Zefan; +Cc: Ingo Molnar, Steven Rostedt, Peter Zijlstra, LKML

On Thu, 17 Apr 2014 10:05:02 +0800
Li Zefan <lizefan@huawei.com> wrote:

> Free cpudl->free_cpus allocated in cpudl_init().
> 
> Signed-off-by: Li Zefan <lizefan@huawei.com>
> Cc: <stable@vger.kernel.org> # 3.14
> ---
>  kernel/sched/cpudeadline.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/kernel/sched/cpudeadline.c b/kernel/sched/cpudeadline.c
> index 5b9bb42..ab001b5 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);
>  }

Thanks!

- Juri

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:sched/core] sched/deadline: Fix memory leak
  2014-04-17  2:05 [PATCH] sched/deadline: Fix memory leak Li Zefan
  2014-04-17  7:22 ` Juri Lelli
@ 2014-05-08 10:41 ` tip-bot for Li Zefan
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Li Zefan @ 2014-05-08 10:41 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, peterz, tglx, juri.lelli, lizefan

Commit-ID:  6a7cd273dc4bc3246f37ebe874754a54ccb29141
Gitweb:     http://git.kernel.org/tip/6a7cd273dc4bc3246f37ebe874754a54ccb29141
Author:     Li Zefan <lizefan@huawei.com>
AuthorDate: Thu, 17 Apr 2014 10:05:02 +0800
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 7 May 2014 11:51:32 +0200

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>
---
 kernel/sched/cpudeadline.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/kernel/sched/cpudeadline.c b/kernel/sched/cpudeadline.c
index 5b9bb42..ab001b5 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);
 }

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-08 10:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-17  2:05 [PATCH] sched/deadline: Fix memory leak Li Zefan
2014-04-17  7:22 ` Juri Lelli
2014-05-08 10:41 ` [tip:sched/core] " tip-bot for Li Zefan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).