diff options
Diffstat (limited to 'fs/pstore/inode.c')
-rw-r--r-- | fs/pstore/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c index b3b426edb2fd..ec7d1fb6f35a 100644 --- a/fs/pstore/inode.c +++ b/fs/pstore/inode.c | |||
@@ -303,7 +303,7 @@ int pstore_fill_super(struct super_block *sb, void *data, int silent) | |||
303 | /* override ramfs "dir" options so we catch unlink(2) */ | 303 | /* override ramfs "dir" options so we catch unlink(2) */ |
304 | inode->i_op = &pstore_dir_inode_operations; | 304 | inode->i_op = &pstore_dir_inode_operations; |
305 | 305 | ||
306 | root = d_alloc_root(inode); | 306 | root = d_make_root(inode); |
307 | sb->s_root = root; | 307 | sb->s_root = root; |
308 | if (!root) { | 308 | if (!root) { |
309 | err = -ENOMEM; | 309 | err = -ENOMEM; |
@@ -314,7 +314,6 @@ int pstore_fill_super(struct super_block *sb, void *data, int silent) | |||
314 | 314 | ||
315 | return 0; | 315 | return 0; |
316 | fail: | 316 | fail: |
317 | iput(inode); | ||
318 | return err; | 317 | return err; |
319 | } | 318 | } |
320 | 319 | ||