mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
workqueue: Fix missing kfree(rescuer) in destroy_workqueue()
commit8efe1223d7
upstream. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Qian Cai <cai@lca.pw> Fixes:def98c84b6
("workqueue: Fix spurious sanity check failures in destroy_workqueue()") Cc: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
382a2f0030
commit
1a1e9ff59d
1 changed files with 1 additions and 0 deletions
|
@ -4057,6 +4057,7 @@ void destroy_workqueue(struct workqueue_struct *wq)
|
|||
|
||||
/* rescuer will empty maydays list before exiting */
|
||||
kthread_stop(rescuer->task);
|
||||
kfree(rescuer);
|
||||
}
|
||||
|
||||
/* sanity checks */
|
||||
|
|
Loading…
Reference in a new issue