diff options
Diffstat (limited to 'fs/openpromfs')
-rw-r--r-- | fs/openpromfs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c index a88c03bc749d..bc49c975d501 100644 --- a/fs/openpromfs/inode.c +++ b/fs/openpromfs/inode.c | |||
@@ -408,13 +408,12 @@ static int openprom_fill_super(struct super_block *s, void *data, int silent) | |||
408 | oi->type = op_inode_node; | 408 | oi->type = op_inode_node; |
409 | oi->u.node = of_find_node_by_path("/"); | 409 | oi->u.node = of_find_node_by_path("/"); |
410 | 410 | ||
411 | s->s_root = d_alloc_root(root_inode); | 411 | s->s_root = d_make_root(root_inode); |
412 | if (!s->s_root) | 412 | if (!s->s_root) |
413 | goto out_no_root_dentry; | 413 | goto out_no_root_dentry; |
414 | return 0; | 414 | return 0; |
415 | 415 | ||
416 | out_no_root_dentry: | 416 | out_no_root_dentry: |
417 | iput(root_inode); | ||
418 | ret = -ENOMEM; | 417 | ret = -ENOMEM; |
419 | out_no_root: | 418 | out_no_root: |
420 | printk("openprom_fill_super: get root inode failed\n"); | 419 | printk("openprom_fill_super: get root inode failed\n"); |