summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJoern Engel <joern@logfs.org>2010-03-26 14:45:55 +0100
committerJoern Engel <joern@logfs.org>2010-03-27 11:19:16 +0100
commit7db8064c17b92e95aec2e333096c035db9ddd4fe (patch)
tree1bbc36d41a751f29918f6cbbf9dc7d2f6e6a7be9 /fs
parentfaaa27ab919799929732c356a92a160f8657ecc6 (diff)
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 <joern@logfs.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/logfs/super.c2
1 files changed, 1 insertions, 1 deletions
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)