Skip to content

Commit 8efe122

Browse files
committed
workqueue: Fix missing kfree(rescuer) in destroy_workqueue()
Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Qian Cai <cai@lca.pw> Fixes: def98c8 ("workqueue: Fix spurious sanity check failures in destroy_workqueue()")
1 parent def98c8 commit 8efe122

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/workqueue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4345,6 +4345,7 @@ void destroy_workqueue(struct workqueue_struct *wq)
43454345

43464346
/* rescuer will empty maydays list before exiting */
43474347
kthread_stop(rescuer->task);
4348+
kfree(rescuer);
43484349
}
43494350

43504351
/* sanity checks */

0 commit comments

Comments
 (0)