From: Joern Engel Date: Fri, 26 Mar 2010 13:45:55 +0000 (+0100) Subject: Fix logfs_get_sb_final error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7db8064c17b92e95aec2e333096c035db9ddd4fe;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Fix logfs_get_sb_final error path rootdir was already allocated, so we must iput it again. Found by Al Viro. Signed-off-by: Joern Engel --- diff --git a/fs/logfs/super.c b/fs/logfs/super.c index 006670fe9e8b..2845c41d70d4 100644 --- a/fs/logfs/super.c +++ b/fs/logfs/super.c @@ -328,7 +328,7 @@ static int logfs_get_sb_final(struct super_block *sb, struct vfsmount *mnt) sb->s_root = d_alloc_root(rootdir); if (!sb->s_root) - goto fail; + goto fail2; super->s_erase_page = alloc_pages(GFP_KERNEL, 0); if (!super->s_erase_page)