Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752924Ab0DLQkY (ORCPT ); Mon, 12 Apr 2010 12:40:24 -0400 Received: from cantor.suse.de ([195.135.220.2]:60923 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752189Ab0DLQkW (ORCPT ); Mon, 12 Apr 2010 12:40:22 -0400 From: Jan Blunck To: Andrew Morton Cc: Linux-Kernel Mailinglist , Dave Kleikamp , Frederic Weisbecker , Arnd Bergmann , Jan Blunck Subject: [PATCH] JFS: Free sbi memory in error path Date: Mon, 12 Apr 2010 18:40:17 +0200 Message-Id: <1271090417-19408-1-git-send-email-jblunck@suse.de> X-Mailer: git-send-email 1.6.4.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 765 Lines: 27 I spotted the missing kfree() while removing the BKL. Signed-off-by: Jan Blunck --- fs/jfs/super.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/jfs/super.c b/fs/jfs/super.c index 266699d..a402b7d 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c @@ -457,6 +457,7 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent) if (newLVSize) { printk(KERN_ERR "resize option for remount only\n"); + kfree(sbi); return -EINVAL; } -- 1.6.4.2 -- 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/