File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2102,7 +2102,7 @@ static __latent_entropy struct task_struct *copy_process(
2102
2102
*/
2103
2103
retval = cgroup_can_fork (p );
2104
2104
if (retval )
2105
- goto bad_fork_put_pidfd ;
2105
+ goto bad_fork_cgroup_threadgroup_change_end ;
2106
2106
2107
2107
/*
2108
2108
* From this point on we must avoid any synchronous user-space
@@ -2217,11 +2217,12 @@ static __latent_entropy struct task_struct *copy_process(
2217
2217
spin_unlock (& current -> sighand -> siglock );
2218
2218
write_unlock_irq (& tasklist_lock );
2219
2219
cgroup_cancel_fork (p );
2220
+ bad_fork_cgroup_threadgroup_change_end :
2221
+ cgroup_threadgroup_change_end (current );
2220
2222
bad_fork_put_pidfd :
2221
2223
if (clone_flags & CLONE_PIDFD )
2222
2224
ksys_close (pidfd );
2223
2225
bad_fork_free_pid :
2224
- cgroup_threadgroup_change_end (current );
2225
2226
if (pid != & init_struct_pid )
2226
2227
free_pid (pid );
2227
2228
bad_fork_cleanup_thread :
You can’t perform that action at this time.
0 commit comments