diff options
author | Tejun Heo <tj@kernel.org> | 2019-09-20 23:39:57 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2019-09-20 23:39:57 +0300 |
commit | 8efe1223d73c218ce7e8b2e0e9aadb974b582d7f (patch) | |
tree | cd0c6c80c4785a6ef1f1e73d233c76b0c8e29382 /kernel/workqueue.c | |
parent | def98c84b6cdf2eeea19ec5736e90e316df5206b (diff) |
workqueue: Fix missing kfree(rescuer) in destroy_workqueue()
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Qian Cai <cai@lca.pw>
Fixes: def98c84b6cd ("workqueue: Fix spurious sanity check failures in destroy_workqueue()")
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r-- | kernel/workqueue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 93e20f5330fc..3f067f1d72e3 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -4345,6 +4345,7 @@ void destroy_workqueue(struct workqueue_struct *wq) /* rescuer will empty maydays list before exiting */ kthread_stop(rescuer->task); + kfree(rescuer); } /* sanity checks */ |