From mboxrd@z Thu Jan 1 00:00:00 1970 From: WANG Cong Subject: [Patch] fs/binfmt_elf.c: fix a wrong free Date: Sat, 3 May 2008 20:46:18 +0800 Message-ID: <20080503124610.GA3986@hack> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Eric Youngdale , viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, Andrew Morton To: LKML Return-path: Received: from rv-out-0506.google.com ([209.85.198.225]:50916 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761296AbYECMm3 (ORCPT ); Sat, 3 May 2008 08:42:29 -0400 Received: by rv-out-0506.google.com with SMTP id l9so425735rvb.1 for ; Sat, 03 May 2008 05:42:29 -0700 (PDT) Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Fix a wrong free in fs/binfmt_elf.c::elf_core_dump(). Signed-off-by: WANG Cong Cc: Alexander Viro Cc: Eric Youngdale --- fs/binfmt_elf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index b25707f..43254e3 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -2032,10 +2032,10 @@ static int elf_core_dump(long signr, struct pt_regs *regs, struct file *file, un end_coredump: set_fs(fs); + free_note_info(&info); cleanup: kfree(elf); - free_note_info(&info); return has_dumped; } -- 1.5.4.1