lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 17 Apr 2014 09:22:03 +0200
From:	Juri Lelli <juri.lelli@...il.com>
To:	Li Zefan <lizefan@...wei.com>
Cc:	Ingo Molnar <mingo@...hat.com>,
	Steven Rostedt <rostedt@...dmis.org>,
	Peter Zijlstra <peterz@...radead.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] sched/deadline: Fix memory leak

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

> Free cpudl->free_cpus allocated in cpudl_init().
> 
> Signed-off-by: Li Zefan <lizefan@...wei.com>
> Cc: <stable@...r.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ