[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190920204309.GA2233839@devbig004.ftw2.facebook.com>
Date: Fri, 20 Sep 2019 13:43:09 -0700
From: Tejun Heo <tj@...nel.org>
To: Qian Cai <cai@....pw>
Cc: Marcin Pawlowski <mpawlowski@...com>,
"Williams, Gerald S" <gerald.s.williams@...el.com>,
linux-kernel@...r.kernel.org,
Lai Jiangshan <jiangshanlai@...il.com>
Subject: [PATCH wq/for-5.4-fixes] workqueue: Fix missing kfree(rescuer) in
destroy_workqueue()
>From 8efe1223d73c218ce7e8b2e0e9aadb974b582d7f Mon Sep 17 00:00:00 2001
From: Tejun Heo <tj@...nel.org>
Date: Fri, 20 Sep 2019 13:39:57 -0700
Signed-off-by: Tejun Heo <tj@...nel.org>
Reported-by: Qian Cai <cai@....pw>
Fixes: def98c84b6cd ("workqueue: Fix spurious sanity check failures in destroy_workqueue()")
---
Applied to wq/for-5.4-fixes.
Thanks.
kernel/workqueue.c | 1 +
1 file changed, 1 insertion(+)
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 */
--
2.17.1
Powered by blists - more mailing lists