diff options
Diffstat (limited to 'fs/devpts')
-rw-r--r-- | fs/devpts/inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index 79673eb71151..c4e2a58a2e82 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c | |||
@@ -301,7 +301,7 @@ devpts_fill_super(struct super_block *s, void *data, int silent) | |||
301 | 301 | ||
302 | inode = new_inode(s); | 302 | inode = new_inode(s); |
303 | if (!inode) | 303 | if (!inode) |
304 | goto free_fsi; | 304 | goto fail; |
305 | inode->i_ino = 1; | 305 | inode->i_ino = 1; |
306 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 306 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
307 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; | 307 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; |
@@ -316,8 +316,6 @@ devpts_fill_super(struct super_block *s, void *data, int silent) | |||
316 | printk(KERN_ERR "devpts: get root dentry failed\n"); | 316 | printk(KERN_ERR "devpts: get root dentry failed\n"); |
317 | iput(inode); | 317 | iput(inode); |
318 | 318 | ||
319 | free_fsi: | ||
320 | kfree(s->s_fs_info); | ||
321 | fail: | 319 | fail: |
322 | return -ENOMEM; | 320 | return -ENOMEM; |
323 | } | 321 | } |