[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1271090417-19408-1-git-send-email-jblunck@suse.de>
Date: Mon, 12 Apr 2010 18:40:17 +0200
From: Jan Blunck <jblunck@...e.de>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Linux-Kernel Mailinglist <linux-kernel@...r.kernel.org>,
Dave Kleikamp <shaggy@...ux.vnet.ibm.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Arnd Bergmann <arnd@...db.de>, Jan Blunck <jblunck@...e.de>
Subject: [PATCH] JFS: Free sbi memory in error path
I spotted the missing kfree() while removing the BKL.
Signed-off-by: Jan Blunck <jblunck@...e.de>
---
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@...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