commit | 7db8064c17b92e95aec2e333096c035db9ddd4fe | [log] [tgz] |
---|---|---|
author | Joern Engel <joern@logfs.org> | Fri Mar 26 14:45:55 2010 +0100 |
committer | Joern Engel <joern@logfs.org> | Sat Mar 27 11:19:16 2010 +0100 |
tree | 1bbc36d41a751f29918f6cbbf9dc7d2f6e6a7be9 | |
parent | faaa27ab919799929732c356a92a160f8657ecc6 [diff] [blame] |
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>
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 @@ 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)