Skip to content

Commit b73f049

Browse files
committed
Merge branch 'for-6.6-fixes' into for-next
2 parents f1df12b + 6434455 commit b73f049

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

kernel/workqueue.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4600,6 +4600,12 @@ static int alloc_and_link_pwqs(struct workqueue_struct *wq)
46004600
}
46014601
cpus_read_unlock();
46024602

4603+
/* for unbound pwq, flush the pwq_release_worker ensures that the
4604+
* pwq_release_workfn() completes before calling kfree(wq).
4605+
*/
4606+
if (ret)
4607+
kthread_flush_worker(pwq_release_worker);
4608+
46034609
return ret;
46044610

46054611
enomem:

0 commit comments

Comments
 (0)