projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e13c3c2
)
workqueue: Fix missing kfree(rescuer) in destroy_workqueue()
author
Tejun Heo
<tj@kernel.org>
Fri, 20 Sep 2019 20:39:57 +0000
(13:39 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 18:56:54 +0000
(19:56 +0100)
commit
8efe1223d73c218ce7e8b2e0e9aadb974b582d7f
upstream.
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()")
Cc: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/workqueue.c
patch
|
blob
|
history
diff --git
a/kernel/workqueue.c
b/kernel/workqueue.c
index 02319b84ef681836f0275113a05818699902988c..649687622654b8857151844651b45c227c8aefe8 100644
(file)
--- a/
kernel/workqueue.c
+++ b/
kernel/workqueue.c
@@
-4351,6
+4351,7
@@
void destroy_workqueue(struct workqueue_struct *wq)
/* rescuer will empty maydays list before exiting */
kthread_stop(rescuer->task);
+ kfree(rescuer);
}
/* sanity checks */