Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932069AbaDQHVn (ORCPT ); Thu, 17 Apr 2014 03:21:43 -0400 Received: from mail-ee0-f49.google.com ([74.125.83.49]:61766 "EHLO mail-ee0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751261AbaDQHVl (ORCPT ); Thu, 17 Apr 2014 03:21:41 -0400 Date: Thu, 17 Apr 2014 09:22:03 +0200 From: Juri Lelli To: Li Zefan Cc: Ingo Molnar , Steven Rostedt , Peter Zijlstra , LKML Subject: Re: [PATCH] sched/deadline: Fix memory leak Message-Id: <20140417092203.8f4303e41af14832dc37eed6@gmail.com> In-Reply-To: <534F36CE.2000409@huawei.com> References: <534F36CE.2000409@huawei.com> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 Apr 2014 10:05:02 +0800 Li Zefan wrote: > Free cpudl->free_cpus allocated in cpudl_init(). > > Signed-off-by: Li Zefan > Cc: # 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/