diff options
author | Joern Engel <joern@logfs.org> | 2010-03-26 13:45:55 (GMT) |
---|---|---|
committer | Joern Engel <joern@logfs.org> | 2010-03-27 10:19:16 (GMT) |
commit | 7db8064c17b92e95aec2e333096c035db9ddd4fe (patch) | |
tree | 1bbc36d41a751f29918f6cbbf9dc7d2f6e6a7be9 /fs/logfs | |
parent | faaa27ab919799929732c356a92a160f8657ecc6 (diff) | |
download | linux-7db8064c17b92e95aec2e333096c035db9ddd4fe.tar.xz |
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 006670f..2845c41 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) |