diff options
author | Joern Engel <joern@logfs.org> | 2010-03-26 14:45:55 +0100 |
---|---|---|
committer | Joern Engel <joern@logfs.org> | 2010-03-27 11:19:16 +0100 |
commit | 7db8064c17b92e95aec2e333096c035db9ddd4fe (patch) | |
tree | 1bbc36d41a751f29918f6cbbf9dc7d2f6e6a7be9 /fs/logfs | |
parent | faaa27ab919799929732c356a92a160f8657ecc6 (diff) | |
download | linux-7db8064c17b92e95aec2e333096c035db9ddd4fe.tar.bz2 |
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/logfs')
-rw-r--r-- | fs/logfs/super.c | 2 |
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) |