Skip to content

Commit

Permalink
Fix logfs_get_sb_final error path
Browse files Browse the repository at this point in the history
rootdir was already allocated, so we must iput it again.
Found by Al Viro.

Signed-off-by: Joern Engel <[email protected]>
  • Loading branch information
Joern Engel committed Mar 27, 2010
1 parent faaa27a commit 7db8064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/logfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7db8064

Please sign in to comment.