diff options
author | Tejun Heo <tj@kernel.org> | 2019-09-20 22:39:57 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2019-09-20 22:39:57 +0200 |
commit | 8efe1223d73c218ce7e8b2e0e9aadb974b582d7f (patch) | |
tree | cd0c6c80c4785a6ef1f1e73d233c76b0c8e29382 | |
parent | workqueue: Fix spurious sanity check failures in destroy_workqueue() (diff) | |
download | linux-8efe1223d73c218ce7e8b2e0e9aadb974b582d7f.tar.xz linux-8efe1223d73c218ce7e8b2e0e9aadb974b582d7f.zip |
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()")
-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 */ |