diff options
author | Tejun Heo <tj@kernel.org> | 2019-09-20 13:39:57 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2019-09-20 13:39:57 -0700 |
commit | 8efe1223d73c218ce7e8b2e0e9aadb974b582d7f (patch) | |
tree | cd0c6c80c4785a6ef1f1e73d233c76b0c8e29382 /kernel/workqueue.c | |
parent | def98c84b6cdf2eeea19ec5736e90e316df5206b (diff) | |
download | linux-8efe1223d73c218ce7e8b2e0e9aadb974b582d7f.tar.bz2 |
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 */ |