diff options
Diffstat (limited to 'fs/cramfs/inode.c')
-rw-r--r-- | fs/cramfs/inode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index 04d51f9333d7..d013c46402ed 100644 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c | |||
@@ -318,11 +318,9 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent) | |||
318 | root = get_cramfs_inode(sb, &super.root, 0); | 318 | root = get_cramfs_inode(sb, &super.root, 0); |
319 | if (IS_ERR(root)) | 319 | if (IS_ERR(root)) |
320 | goto out; | 320 | goto out; |
321 | sb->s_root = d_alloc_root(root); | 321 | sb->s_root = d_make_root(root); |
322 | if (!sb->s_root) { | 322 | if (!sb->s_root) |
323 | iput(root); | ||
324 | goto out; | 323 | goto out; |
325 | } | ||
326 | return 0; | 324 | return 0; |
327 | out: | 325 | out: |
328 | kfree(sbi); | 326 | kfree(sbi); |