diff options
Diffstat (limited to 'fs/ufs/super.c')
-rw-r--r-- | fs/ufs/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index ec25d09fcaa8..f636f6b460d0 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -1164,10 +1164,10 @@ magic_found: | |||
1164 | ret = PTR_ERR(inode); | 1164 | ret = PTR_ERR(inode); |
1165 | goto failed; | 1165 | goto failed; |
1166 | } | 1166 | } |
1167 | sb->s_root = d_alloc_root(inode); | 1167 | sb->s_root = d_make_root(inode); |
1168 | if (!sb->s_root) { | 1168 | if (!sb->s_root) { |
1169 | ret = -ENOMEM; | 1169 | ret = -ENOMEM; |
1170 | goto dalloc_failed; | 1170 | goto failed; |
1171 | } | 1171 | } |
1172 | 1172 | ||
1173 | ufs_setup_cstotal(sb); | 1173 | ufs_setup_cstotal(sb); |
@@ -1181,8 +1181,6 @@ magic_found: | |||
1181 | UFSD("EXIT\n"); | 1181 | UFSD("EXIT\n"); |
1182 | return 0; | 1182 | return 0; |
1183 | 1183 | ||
1184 | dalloc_failed: | ||
1185 | iput(inode); | ||
1186 | failed: | 1184 | failed: |
1187 | if (ubh) | 1185 | if (ubh) |
1188 | ubh_brelse_uspi (uspi); | 1186 | ubh_brelse_uspi (uspi); |