1
0
Fork 0

workqueue: Fix missing kfree(rescuer) in destroy_workqueue()

commit 8efe1223d7 upstream.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Qian Cai <cai@lca.pw>
Fixes: def98c84b6 ("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>
5.4-rM2-2.2.x-imx-squashed
Tejun Heo 2019-09-20 13:39:57 -07:00 committed by Greg Kroah-Hartman
parent e13c3c2196
commit 26ba4f73a0
1 changed files with 1 additions and 0 deletions

View File

@ -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 */