Loading fs/devpts/inode.c +3 −6 Original line number Diff line number Diff line Loading @@ -384,18 +384,15 @@ static int devpts_get_sb(struct file_system_type *fs_type, s->s_flags |= MS_ACTIVE; } simple_set_mnt(mnt, s); memcpy(&(DEVPTS_SB(s))->mount_opts, &opts, sizeof(opts)); error = mknod_ptmx(s); if (error) goto out_dput; goto out_undo_sget; return 0; simple_set_mnt(mnt, s); out_dput: dput(s->s_root); /* undo dget() in simple_set_mnt() */ return 0; out_undo_sget: deactivate_locked_super(s); Loading Loading
fs/devpts/inode.c +3 −6 Original line number Diff line number Diff line Loading @@ -384,18 +384,15 @@ static int devpts_get_sb(struct file_system_type *fs_type, s->s_flags |= MS_ACTIVE; } simple_set_mnt(mnt, s); memcpy(&(DEVPTS_SB(s))->mount_opts, &opts, sizeof(opts)); error = mknod_ptmx(s); if (error) goto out_dput; goto out_undo_sget; return 0; simple_set_mnt(mnt, s); out_dput: dput(s->s_root); /* undo dget() in simple_set_mnt() */ return 0; out_undo_sget: deactivate_locked_super(s); Loading