diff options
Diffstat (limited to 'fs/devpts/inode.c')
-rw-r--r-- | fs/devpts/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index bff4052b05e7..140b43144cd8 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c | |||
@@ -385,6 +385,7 @@ static int new_pts_mount(struct file_system_type *fs_type, int flags, | |||
385 | 385 | ||
386 | fail: | 386 | fail: |
387 | dput(mnt->mnt_sb->s_root); | 387 | dput(mnt->mnt_sb->s_root); |
388 | up_write(&mnt->mnt_sb->s_umount); | ||
388 | deactivate_super(mnt->mnt_sb); | 389 | deactivate_super(mnt->mnt_sb); |
389 | return err; | 390 | return err; |
390 | } | 391 | } |
@@ -473,6 +474,7 @@ static int init_pts_mount(struct file_system_type *fs_type, int flags, | |||
473 | err = mknod_ptmx(mnt->mnt_sb); | 474 | err = mknod_ptmx(mnt->mnt_sb); |
474 | if (err) { | 475 | if (err) { |
475 | dput(mnt->mnt_sb->s_root); | 476 | dput(mnt->mnt_sb->s_root); |
477 | up_write(&mnt->mnt_sb->s_umount); | ||
476 | deactivate_super(mnt->mnt_sb); | 478 | deactivate_super(mnt->mnt_sb); |
477 | } | 479 | } |
478 | 480 | ||