]> Pileus Git - ~andy/linux/blobdiff - fs/cramfs/inode.c
tracing, sched, vfs: Fix 'old_pid' usage in trace_sched_process_exec()
[~andy/linux] / fs / cramfs / inode.c
index 04d51f9333d73fa52a7f4b1b586ededdfbd63b79..d013c46402ed118ea9babda0433efd2692a447c7 100644 (file)
@@ -318,11 +318,9 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent)
        root = get_cramfs_inode(sb, &super.root, 0);
        if (IS_ERR(root))
                goto out;
-       sb->s_root = d_alloc_root(root);
-       if (!sb->s_root) {
-               iput(root);
+       sb->s_root = d_make_root(root);
+       if (!sb->s_root)
                goto out;
-       }
        return 0;
 out:
        kfree(sbi);