diff options
Diffstat (limited to 'fs/devpts/inode.c')
-rw-r--r-- | fs/devpts/inode.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index 63a4a59e4148..21165cf934ff 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c | |||
@@ -389,11 +389,10 @@ static int devpts_get_sb(struct file_system_type *fs_type, | |||
389 | return 0; | 389 | return 0; |
390 | 390 | ||
391 | out_dput: | 391 | out_dput: |
392 | dput(s->s_root); | 392 | dput(s->s_root); /* undo dget() in simple_set_mnt() */ |
393 | 393 | ||
394 | out_undo_sget: | 394 | out_undo_sget: |
395 | up_write(&s->s_umount); | 395 | deactivate_locked_super(s); |
396 | deactivate_super(s); | ||
397 | return error; | 396 | return error; |
398 | } | 397 | } |
399 | 398 | ||